Closed MiltonBalaOfficial closed 2 months ago
I think you mix alphabetically sorting with numerical sorting. In fact, in your screenshot both list are perfectly alphabetically sorted. Let's have a look at the pair 1024: mait
and 10: crop
and let's write them down each other:
1024: mait
10: crop
Alphabetical sorting compares corresponding characters from the left:
1
and 1
are equal, so let's check the next character0
and 0
are equal, so let's check the next character2
and :
are different, and in alphabetical sorting the colon comes after the digit 2. Here comparison ends, and 10: crop
is sorted below 1024: mait
.
Your solution to add leading zeroes is the perfect way to handle this if you need numerical sorting, but only have alphabetical sorting at hand.
Yes, I get it. Thanks for the response.
Isnt it possible to provide manual sorting? Sometimes it is needed to sort manually for rearranging the documents. The all documents have to be renamed to place a document between the existing documents for keeping my wished order of the documents.
Isnt it possible to provide manual sorting? Sometimes it is needed to sort manually for rearranging the documents. The all documents have to be renamed to place a document between the existing documents for keeping my wished order of the documents.
That's your feature request #1062. I think this topic here is completed, so I'm closing it.
alphabetical ordering of documents does not work properly for numbers. I got a solution, but that should not be the proper solution. see the bug and the 'solution' .