atyaz,

You can do this in vim, which you can run on Android.

JoeClu,
@JoeClu@lemmy.world avatar

Do you? I’ve tried. Not fun. I use vim everyday on my workstation. On Android tiny keyboard, hard pass.

bet,

I use jove (a small, lightweight emacs) within Termux, and M-X filter-region through sort

JoeClu,
@JoeClu@lemmy.world avatar

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.

bet,

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.

eager_eagle,
@eager_eagle@lemmy.world avatar

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.

bstix,

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.

JoeClu,
@JoeClu@lemmy.world avatar

My question is regarding Android apps. I thought that was implied by the community name. My apologies for the confusion.

AlmightySnoo,

You mean sorting your documents by name/size/modified date?

JoeClu,
@JoeClu@lemmy.world avatar

No, sorting text in the document. Sort all lines in document.

From this:


<span style="color:#323232;"> Paper
</span><span style="color:#323232;">
</span><span style="color:#323232;"> Altitude
</span><span style="color:#323232;">
</span><span style="color:#323232;"> A better book
</span>

To this:


<span style="color:#323232;"> A better book
</span><span style="color:#323232;">
</span><span style="color:#323232;"> Altitude 
</span><span style="color:#323232;">
</span><span style="color:#323232;"> Paper
</span>
MargotRobbie,
@MargotRobbie@lemmy.world avatar

Maybe you want a spreadsheet app instead.

AlmightySnoo,

or termux and then doing a sort input_file.txt

JoeClu,
@JoeClu@lemmy.world avatar

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.

JoeClu,
@JoeClu@lemmy.world avatar

No, looking for a text editor. Seems simple enough and it’s very useful.

lechatron, (edited )
@lechatron@lemmy.world avatar

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.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • [email protected]
  • uselessserver093
  • Food
  • aaaaaaacccccccce
  • test
  • CafeMeta
  • testmag
  • MUD
  • RhythmGameZone
  • RSS
  • dabs
  • oklahoma
  • feritale
  • KamenRider
  • Ask_kbincafe
  • TheResearchGuardian
  • KbinCafe
  • Socialism
  • SuperSentai
  • All magazines