[All 8.x x32, maybe also 7.x] Weird sorting 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
siealex
Senior Member
Senior Member
Posts: 304
Joined: 2009-03-22, 16:36 UTC

[All 8.x x32, maybe also 7.x] Weird sorting order

Post by *siealex »

When I enter my folder with MIDI files, I see this.
Image: http://s11.postimage.org/tgnnhlmmr/tcbug1.jpg
I click "sort by type" twice and see another sorting.
Image: http://s11.postimage.org/s9eb34lw3/tcbug2.jpg
If I go [..] and enter this folder again (or simply minimize TC and maximize it), I will see the first picture. What does it mean? Pay attention to the file with ['] in its name.
Last edited by siealex on 2012-07-14, 11:10 UTC, edited 1 time in total.
We are not so S.M.A.R.T. as we imagine...
User avatar
MaxX
Power Member
Power Member
Posts: 1175
Joined: 2012-03-23, 18:15 UTC
Location: UA

Post by *MaxX »

2siealex
Nothing wrong, that's normal for sorting numbers.
Ukrainian Total Commander Translator. Feedback and discuss.
siealex
Senior Member
Senior Member
Posts: 304
Joined: 2009-03-22, 16:36 UTC

Post by *siealex »

Why? Files with non-numeric characters (apostrophy) must NOT be sorted as numbers. And such files break the numeric sorting.
And why does TC sort in two different ways?
We are not so S.M.A.R.T. as we imagine...
siealex
Senior Member
Senior Member
Posts: 304
Joined: 2009-03-22, 16:36 UTC

Post by *siealex »

I switched the sorting order to "character code and numbers", it seems to work properly. But why does "alphabetical and numbers" give such weird results?
We are not so S.M.A.R.T. as we imagine...
User avatar
MaxX
Power Member
Power Member
Posts: 1175
Joined: 2012-03-23, 18:15 UTC
Location: UA

Post by *MaxX »

2siealex
Sometimes some special symbols are allowed to be ignored, that's a rule. If you don't want problems - just don't make these symbols first in filenames.
Ukrainian Total Commander Translator. Feedback and discuss.
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

siealex,
Interesting how your Windows Explorer shows that folder. I hate default Explorer's natural sorting and I always disable it, also I'm using alphabetical sorting in TC. As I see, TC supports 4 different sorting modes, so you may choose preferred one in Configuration - Display dialog.
User avatar
petermad
Power Member
Power Member
Posts: 16032
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

Well, no matter how you look at it, the sorting after two clicks on the Ext. column header should be the same as when you enter the directory and Ext. sorting is chosen.

And going updir and then back into a dir - or taking focus away from TC and restoring focus shouldn't change the sorting either, so there is definitely a bug.

I can only reproduce it with "Natural sorting: alphabetically and numbers". Where '31 iuna.mid' gets placed either right before or right after 321.mid when clicking the Ext. column header - or before/after 1009.mid when entering the folder with either descending or ascending Ext. sorting enabled.

I can also only reproduce it with the 32bit version under Windows XP - not under Windows 7 x64. But under Windows XP I can reproduce it both with TC 7.57a and TC 8.01rc4.

I can not reproduce siealex's completely random numeric sorting though.

Here is how it looks by me with "Natural sorting: alphabetically and numbers" and otherwise clean ini file:

http://madsenworld.dk/tcmd/sorting_bug_before_focus_loss.png
http://madsenworld.dk/tcmd/sorting_bug_after_focus_loss.png

BTW - '31 iuna.mid' also jumps when loosing/restoring focus when sorting by Name is chosen.
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
siealex
Senior Member
Senior Member
Posts: 304
Joined: 2009-03-22, 16:36 UTC

Post by *siealex »

I can not reproduce siealex 's completely random numeric sorting though.
It's not completely random, the list is divided into two parts and both parts are sorted.
We are not so S.M.A.R.T. as we imagine...
siealex
Senior Member
Senior Member
Posts: 304
Joined: 2009-03-22, 16:36 UTC

Post by *siealex »

Delete all the files and try to create them in random order.
We are not so S.M.A.R.T. as we imagine...
User avatar
petermad
Power Member
Power Member
Posts: 16032
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

Delete all the files and try to create them in random order.
I tried that on a FAT drive - it wouldn't make sense on a NTFS drive (NTFS sorts automatically) - but I still cannot get results
like yours.
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
siealex
Senior Member
Senior Member
Posts: 304
Joined: 2009-03-22, 16:36 UTC

Post by *siealex »

Oops... I have only NTFS drives.
We are not so S.M.A.R.T. as we imagine...
User avatar
petermad
Power Member
Power Member
Posts: 16032
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

2siealex
Could you perhaps have invisible spaces in the end of either name or extension of some of those files?
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
Post Reply