You can do this in vim, which you can run on Android.
Android
DROID DOES
Welcome to the droidymcdroidface-iest, Lemmyest (Lemmiest), test, bestest, phoniest, pluckiest, snarkiest, and spiciest Android community on Lemmy (Do not respond)! Here you can participate in amazing discussions and events relating to all things Android.
The rules for posting and commenting, besides the rules defined here for lemmy.world, are as follows:
Rules
1. All posts must be relevant to Android devices/operating system.
2. Posts cannot be illegal or NSFW material.
3. No spam, self promotion, or upvote farming. Sources engaging in these behavior will be added to the Blacklist.
4. Non-whitelisted bots will be banned.
5. Engage respectfully: Harassment, flamebaiting, bad faith engagement, or agenda posting will result in your posts being removed. Excessive violations will result in temporary or permanent ban, depending on severity.
6. Memes are not allowed to be posts, but are allowed in the comments.
7. Posts from clickbait sources are heavily discouraged. Please de-clickbait titles if it needs to be submitted.
8. Submission statements of any length composed of your own thoughts inside the post text field are mandatory for any microblog posts, and are optional but recommended for article/image/video posts.
Community Resources:
We are Android girls*,
In our Lemmy.world.
The back is plastic,
It's fantastic.
*Well, not just girls: people of all gender identities are welcomed here.
Our Partner Communities:
Do you? I've tried. Not fun. I use vim everyday on my workstation. On Android tiny keyboard, hard pass.
VS Code can sort lines (all or selected), I use it often too.
Ah sorry, I just saw it's for android - I'd choose the termux approach with sort file.txt
.
I use jove (a small, lightweight emacs) within Termux, and M-X filter-region through sort
I see. I switched from emacs to vim years ago and now I've forgotten most of the key chords in emacs. Nevertheless, seems like an awful way to edit files on a small android device. I tried vim for android and it was quite challenging. Not something I want to repeat.
With "Unexpected Keyboard" (from f-droid) it's ok. I've come to expect that there's a basic choice between easy, with GUI, and powerful (like "sort a region of lines"), which is only GUI if you've got a powerful GUI, like plan 9. Otherwise, powerful means keyboard-driven.
When I've got a long, complex edit, I've got a nice, pocket-size, battery-powered folding bluetooth keyboard; combined with the kickstands on my phone cases, it is pretty good.
You mean sorting your documents by name/size/modified date?
No, sorting text in the document. Sort all lines in document.
From this:
Paper
Altitude
A better book
To this:
A better book
Altitude
Paper
Maybe you want a spreadsheet app instead.
or termux and then doing a sort input_file.txt
I am aware of that route. But I'm looking for a text editor that will do it. You know, select some rows, click tools->sort. Seems easy enough.
No, looking for a text editor. Seems simple enough and it's very useful.
What you're wanting to do is sort a list, I know that word allows you to sort as bulleted list.
Edit: I assumed their mobile app had similar features to the desktop version, but after installing it's severely lacking in features.
Are you using windows? Then you don't need software. You can do that in the command prompt.
The command is literally called "sort"
Step by step tutorial:
Right click somewhere, select "Create New/text document". Type or paste your list there. Save it. Right click the file, select properties and copy the location. F.i. "C/user/desktop/"
Press windows key. Type CMD. Open the the command prompt. Go to the place where the file is by typing "cd " and paste the location.
Type: sort [your filename.txt] > [new file name.txt]
You now have a sorted copy of the file.
Otherwise use a spreadsheet to do it.
My question is regarding Android apps. I thought that was implied by the community name. My apologies for the confusion.