View Single Post
Old 05-24-2022, 11:54 AM   #6
ReaderGuy42
Enthusiast
ReaderGuy42 began at the beginning.
 
Posts: 30
Karma: 10
Join Date: Oct 2021
Device: Kindle
Quote:
Originally Posted by theducks View Post
Keyword: Alphasort

The sort is by CHARACTER weight (position in the ASCII table),
not the numeric value of digits included in the string.

The common way to make strings sort is to pad the leading places (as needed to make the highest number sort).
eg.
highest number
500 then pad 00 for single digit, 000 if 0
20 then a single 0 pad

You could use a space (ASCII%20), but those are really hard to see if you counted right, on most screens.
FWIW I commonly steer folder sorts by using a leading number:0First (or force to the end:zMakethislast) lowercase sorts AFTER uppercase
Thanks That's interesting, I use the same thing with 0's and Z's too. Any idea how in this system to have a x.5 be sorted correctly after x instead of before? So like 2.5 should come AFTER 2. In my Linux Mint file explorer (nemo) this is an issue.
ReaderGuy42 is offline   Reply With Quote