Issue with File Sorting Logic
Bug #919285 reported by
Nat Katin-Borland
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
KARL3 |
Won't Fix
|
Medium
|
Balazs Ree |
Bug Description
When you upload a bunch of files to KARL with file names containing numbers, KARL doesn't seem to know how to deal with these in a logical way. It seems to sort files by the first digit only, rather than the entire number. So if you upload a series of documents it groups them like this: 1, 10, 100, 101, 102… then 2, 20, 200, 201. Obviously it would make more sense for the end user if items were grouped by in a more logical way, taking the entire number into account: 1, 2..10....100, 101...200, etc.
To post a comment you must log in.
Unfortunately that's the way alphabetic sorting works. When sorting alphabetically:
1 A
10 A
100 A
2 A
20 A
3 A
...is the sort order. Attached is a spreadsheet where I sorted alphabetically to demonstrate this. I'll see if Python/Javascript offers any choices for easily doing some other kind of sort, but I suspect our options are limited.