TC 9.5b1 - Case sensitive sorting in TC not conforming with Explorer or NTFS

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

TC 9.5b1 - Case sensitive sorting in TC not conforming with Explorer or NTFS

Post by *petermad »

Now that TC supports the use of matching case sensitive filenames under Windows 10, maybe it is time for TC to change the sorting of case sensitive names to conform with Windows Explorer and the NTFS file system - at least in directories where matching case sensitive filenames are supported.

For example TC sorts like this: freesound ➝ Freesound ➝ FREESOUND, no matter which sorting method I chose in the configuration - see: https://madsenworld.dk/tcmd/casesorting.png / https://madsenworld.dk/tcmd/casesorting3.png

Windows Explorer sorts like this: FRESOUND ➝ Freesound ➝ freesound - wich is more logical since capital letters have lower numbers in the ANSI table than lovercase letters See: https://madsenworld.dk/tcmd/casesortingExp.png

If you set TC to show the files Unsorted, it will show the files the way the NTFS file system sorts them (same as Explorer). See: https://madsenworld.dk/tcmd/casesortingNTFS.png

Notice that Explorer only does case sensitive sorting for matching names like C.txt and c.txt - while not matcing names like ECc.txt and ECX.txt are sorted case insensitive.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Usher
Power Member
Power Member
Posts: 1675
Joined: 2011-03-11, 10:11 UTC

Re: TC 9.5b1 - Case sensitive sorting in TC not conforming with Explorer or NTFS

Post by *Usher »

In other words - It seems that Explorer/NTFS driver use following sort order: AaBbCcDd… XxYyZz
Andrzej P. Wozniak
Polish subforum moderator
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Re: TC 9.5b1 - Case sensitive sorting in TC not conforming with Explorer or NTFS

Post by *MVV »

I think there should be an option because most people wanting case-sensitive folders come from UNIX world where sorting order is not like in Explorer...

I think Explorer uses such a strange sorting in order to use ONE sorting algorithm for both case-sensitive and case-insensitive folders, because case-sensitive sorting would produce too weird results in a case-insensitive Windows world. But I would expect proper case-sensitive sorting in case-sensitive folders...
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: TC 9.5b1 - Case sensitive sorting in TC not conforming with Explorer or NTFS

Post by *ghisler(Author) »

TC doesn't sort names which only differ in case. It converts all names to uppercase and compares then.

But you can try the last compare option, "Natural sorting: alphabetical and numbers"- It should use the same sort order as the Explorer.
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: TC 9.5b1 - Case sensitive sorting in TC not conforming with Explorer or NTFS

Post by *petermad »

But you can try the last compare option, "Natural sorting: alphabetical and numbers"- It should use the same sort order as the Explorer
As you can see on https://madsenworld.dk/tcmd/casesorting.png and her https://madsenworld.dk/tcmd/casesorting3.png that is unfortunately not the case :-(
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: TC 9.5b1 - Case sensitive sorting in TC not conforming with Explorer or NTFS

Post by *ghisler(Author) »

Hmm, then Explorer doesn't use StrCmpLogicalW any more - sorry, no idea what it uses now.
Author of Total Commander
https://www.ghisler.com
Post Reply