[8.0b15 x32] wrong column sort order

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

Moderators: Hacker, petermad, Stefan2, white

Post Reply
sgp
Senior Member
Senior Member
Posts: 355
Joined: 2005-01-31, 16:04 UTC

[8.0b15 x32] wrong column sort order

Post by *sgp »

Win7 SP1 English x32 - default NTFS file system.

1. Sort the file list panel view by descending modification time order.

2. Create a new folder then create 2100 empty files inside by the names 0000 through 2099. To create the files I used a Take Command command-line loop, DO i=0 to 2099 ( > %@format[04,%i] ) - use something equivalent (Take Command TCC/LE is free from the vendor's site).

3. From top to bottom, I see the following sorted names:
2098 2099 2097 2096 2095 2094 2092 2093 2091 2090...
So the sorting looks wrong: Bug?

4. Click on the sort column header to reverse the sort order and scroll to the bottom of the list. Now I see the following sorted names:
... 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099
So the sorting looks right! This is why I suspect #3 is a bug.
User avatar
Valentino
Power Member
Power Member
Posts: 709
Joined: 2003-02-07, 00:21 UTC
Location: Ukraine

Post by *Valentino »

Probably folders 2092 and 2093 have the same modification time. In this case their mutual position is undefined (unless you sort by two columns using Ctrl+click).
umbra
Power Member
Power Member
Posts: 876
Joined: 2012-01-14, 20:41 UTC

Post by *umbra »

2sgp
I agree with Valentino. I just tried your script with TCC/LE and checked timestamps of created files. Looks like it creates files in groups and in each group files have the same timestamp.
I used a vbs script with a 1 microsecond precision - while NTFS allows a 100ns precision, it doesn't matter here, because the differences between two groups were always in milliseconds.

And other programs sort those files the same way as TC.
Windows 10 Pro x64, Windows 11 Pro x64
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50532
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

TC sorts the files by name when the time stamp is the same and your sort them by time.
Author of Total Commander
https://www.ghisler.com
Post Reply