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: sheep, Hacker, Stefan2, white

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

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

Post by *petermad » 2019-10-20, 13:41 UTC

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 9.5b8 32+64bit on Win XP 32bit, Win 7, 8.1 & 10 (1909) 64bit, 'Everything' 1.4.1.935 (x64)
TC 3.0b12 on Android 6.0
Get: Extended Total Commander Menus | PHSM-Calendar

User avatar
Usher
Power Member
Power Member
Posts: 635
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 » 2019-10-20, 17:09 UTC

In other words - It seems that Explorer/NTFS driver use following sort order: AaBbCcDd… XxYyZz
Regards from Poland
Andrzej P. Wozniak

User avatar
MVV
Power Member
Power Member
Posts: 8411
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 » 2019-10-21, 07:19 UTC

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: 38438
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) » 2019-10-21, 15:38 UTC

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
http://www.ghisler.com

User avatar
petermad
Power Member
Power Member
Posts: 8983
Joined: 2003-02-05, 20:24 UTC
Location: Valsted, Denmark
Contact:

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

Post by *petermad » 2019-10-21, 18:58 UTC

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 9.5b8 32+64bit on Win XP 32bit, Win 7, 8.1 & 10 (1909) 64bit, 'Everything' 1.4.1.935 (x64)
TC 3.0b12 on Android 6.0
Get: Extended Total Commander Menus | PHSM-Calendar

User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 38438
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) » 2019-10-22, 15:52 UTC

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

Post Reply