Issue 579: use "Natural Sort Order" for filenames

issues
Status:closed
Assigned To:Guest
Type:Todo
Area:Skyline
Priority:3
Milestone:4.3
Opened:2018-06-08 11:59 by Brian Pratt
Changed:2023-05-03 16:37 by Brian Pratt
Resolved:2023-05-03 16:37 by Brian Pratt
Resolution:Fixed
Closed:2023-05-03 16:37 by Brian Pratt
2018-06-08 11:59 Brian Pratt
Title»use "Natural Sort Order" for filenames
Assigned ToGuest»Alex MacLean
Type»Defect
Area»Skyline
Priority»3
Milestone»4.2
Per:
https://skyline.ms/announcements/home/support/respond.view?parentId=d452e6f1-4a63-1036-8c20-e465a393e12b&returnUrl=%2Fannouncements%2Fhome%2Fsupport%2Fthread.view%3FrowId%3D36813

"Currently, imported results are sorted lexicographically by their names. However, that breaks the expected sort order in common case of short cardinal numbering, e.g.

2017-01-05-N57784-25-1.raw
2017-01-05-N57784-25-2.raw
2017-01-05-N57784-25-3.raw
2017-01-05-N57784-25-4.raw
2017-01-05-N57784-25-5.raw
2017-01-05-N57784-25-6.raw
2017-01-05-N57784-25-7.raw
2017-01-05-N57784-25-8.raw
2017-01-05-N57784-25-9.raw
2017-01-05-N57784-25-10.raw
2017-01-05-N57784-25-11.raw
2017-01-05-N57784-25-12.raw

come out in Results Manager/Results Grid as

2017-01-05-N57784-25-1.raw
2017-01-05-N57784-25-10.raw
2017-01-05-N57784-25-11.raw
2017-01-05-N57784-25-12.raw
2017-01-05-N57784-25-2.raw
2017-01-05-N57784-25-3.raw
2017-01-05-N57784-25-4.raw
2017-01-05-N57784-25-5.raw
2017-01-05-N57784-25-6.raw
2017-01-05-N57784-25-7.raw
2017-01-05-N57784-25-8.raw
2017-01-05-N57784-25-9.raw

It is proposed that Natural Sort algorithm is used for replicate names:
https://blog.codinghorror.com/sorting-for-humans-natural-sort-order/"


(BSP note: I'd add that it's a bit tricky when you throw in decimals and L10N)

2019-12-13 12:21 Brendan MacLean
Assigned ToAlex MacLean»Brian Pratt
TypeDefect»Todo
Milestone4.2»
Not going to get this from Alex. No special timeline. Opportunistic feature when the opportunity presents itself.

2023-05-03 16:37 Brian Pratt
resolve as Fixed
Statusopen»resolved
fixed 7/12/2022 in commit 81bd935d9e9b2ecea7a235823444dfa36fc68d9c

* Merge pull request #2144 from ProteoWizard/Skyline/work/20220629_natural_sort_order

Added “natural sort” algorithm to the file explorer and document grid. Folders and file names are now sorted with an awareness of numbers in a more human-readable manner as seen in windows explorer. (e.g. Skyline-64_1, Skyline-64_22, Skyline-64_3 sorts to Skyline-64_1, Skyline-64_3, Skyline-64_22)

Not reported by any user.

2023-05-03 16:37 Brian Pratt
close
Statusresolved»closed
Assigned ToBrian Pratt»Guest