I have Sorting method set to "Natural sort: alphabetical and numbers" and it's working fine in almost all cases (I'm aware that for this method TC is doing smart things to translate the strings into naturally sortable ones), but sometimes I get a funny sorting in some special cases, like this screenshot:
https://gyazo.com/7af96c155028d12bb8f136c2d4e2d829
SSD-00-00.mrimg
SSD-01-01.mrimg
SSD1-00-00.mrimg
SSD-02-02.mrimg
SSD-03-03.mrimg
SSD-04-04.mrimg
SSD-05-05.mrimg
SSD-06-06.mrimg
Not sure how it got that result (swallowing the dashes "-" and translating "0n" to "n" would put "SSD1-00-00.mrimg" second, not third?) but it's confusing and unexpected for a "natural" sort. An expected one would be either:
SSD-00-00.mrimg
SSD-01-01.mrimg
SSD-02-02.mrimg
SSD-03-03.mrimg
SSD-04-04.mrimg
SSD-05-05.mrimg
SSD-06-06.mrimg
SSD1-00-00.mrimg
or
SSD1-00-00.mrimg
SSD-00-00.mrimg
SSD-01-01.mrimg
SSD-02-02.mrimg
SSD-03-03.mrimg
SSD-04-04.mrimg
SSD-05-05.mrimg
SSD-06-06.mrimg
I know I can solve this by changing the Sort method to "Natural: by char code and numbers" but I'd like to use the fully natural one if it can be made more robust.
Cheers.
Unexpected sort ordering in some cases for "Natural sor
Moderators: Hacker, petermad, Stefan2, white
I think the natural sorting in TC is done by Windows calls - and Windows Explorer sorts your file names the same way as TC.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
- ghisler(Author)
- Site Admin
- Posts: 50550
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact: