TC7.50a: wrong sort order of "nameless" files

Bug reports will be moved here when the described bug has been fixed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
yong
Member
Member
Posts: 110
Joined: 2009-05-20, 07:23 UTC

TC7.50a: wrong sort order of "nameless" files

Post by *yong »

There is something weird with TC 7.50a when it comes to display files whose names begin with a dot and have no other extensions: these "nameless" files are displayed in reversed order in the file panels like this:
  • .txt
    .exe
    .c
    .b
    .ab
    .a
    .3
    .2
    .1
    .1.txt
    .2.txt
    .3.txt
    1
    2
However, pressing the hot key sequence Alt+Shift+Enter reverses the order of the "nameless" files but the other files have their orders unchanged:
  • .1
    .2
    .3
    .a
    .ab
    .b
    .c
    .exe
    .txt
    .1.txt
    .2.txt
    .3.txt
    1
    2
This behaviour has been observed on Windows XP SP3 English version, locale Chinese (PRC), with the following TC settings:

SortUpper=0
sortorder=0
negative Sortorder=0
User avatar
petermad
Power Member
Power Member
Posts: 14808
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

I can confirm the bug, even the peculiar thing of Alt+Shift+Enter reversing the order of the "nameless" files.

It is the same no matter whether I use sortupper=0 or sortupper=3.

But it is also a little more complicated than that. If I use a FAT partition (to store the file names in the created order) and then create the files in this (unsorted) order:
.exe
.c
.txt
.ab
.1
.2
1
.1.txt
.a
.3
2
.3.txt
.b
.2.txt

then sortorder=0 (name) puts them in this order:
.b
.3
.a
.2
.1
.ab
.txt
.c
.exe
.1.txt
.2.txt
.3.txt
1
2
where only the last 5 files are sorted correctly, and the first 9 files are showed in reverse of the creation order.

If I then press Alt+Shift+Enter this is shown:
.exe
.c
.txt
.ab
.1
.2
.a
.3
.b
.1.txt
.2.txt
.3.txt
1
2
where the first 9 files are now shown in the order they were created.


Windows Explorer sorts the files like this when sorting by name:
.1
.1.txt
.2
.2.txt
.3
.3.txt
.a
.ab
.b
.c
.exe
.txt
1
2
which is the same way that TC shows the list unsorted on a NTFS partition.
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.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Thanks, this problem was caused by conversion to Unicode, and will be fixed in TC 7.51.
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 14808
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

Confirmed fixed in TC 7.55b1 :-)
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.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Thanks!
Author of Total Commander
https://www.ghisler.com
Post Reply