OpenBoard-org / OpenBoard

OpenBoard is a cross-platform interactive whiteboard application intended for use in a classroom setting.
https://openboard.ch/
GNU General Public License v3.0
2.4k stars 429 forks source link

[Bug] alphabetical ordering of documents does not work properly #1071

Closed MiltonBalaOfficial closed 2 months ago

MiltonBalaOfficial commented 2 months ago

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' image .

letsfindaway commented 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:

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.

MiltonBalaOfficial commented 2 months ago

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.

letsfindaway commented 2 months ago

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.