Very old BUG - strange sorting order Branch View

Please report only one bug per message!

Moderators: white, Hacker, petermad, Stefan2

User avatar
Gral
Power Member
Power Member
Posts: 1460
Joined: 2005-01-26, 15:12 UTC

Very old BUG - strange sorting order Branch View

Post by *Gral »

Create directory TEST
create subdirectories
1
2
3
copy same set of files to each subdirectory
1
2
3

goto "TEST", set sorting by name, ascending, enable Branch View
move (with "Down" arrow) cursor through files, you can see on status bar order of files
1\1
2\1
3\1
1\2
2\2
3\2
1\3
2\3
3\3
So first criterium for sorting order is file name, second - subdirectory name.
Now, change sortorder to "by extension" ascending - just press CTRL+F4 or tab header.
Note order of the files:
3\1
2\1
1\1
3\2
2\2
1\2
3\3
2\3
1\3
Files are sorted by names ascending and by directories REVERSED!

That files have no extension, but for files with same extension e.g. all TXT, behaviour described here is the same.

Note: if you are in TEST directory, with plain view, directories visible, sort by name, clicking EXT once doesn't change sort order of directories!
User avatar
petermad
Power Member
Power Member
Posts: 14700
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Very old BUG - strange sorting order Branch View

Post by *petermad »

Confirmed.

Also notice that if you after having sorted by extension, press Ctrl+F7 for unsorted, the sorting stay the same, but if you then once again press Ctrl+F4 then the sorting is the same as sorting by name.

Another thing - if unsorted mode is selected before pressing Ctrl+B, the the branch view is sorted like this:
1\1
1\2
1\3
2\1
2\2
2\3
3\1
3\2
3\3

But if I thereafter press Ctrl+F3 followed by Ctrl+F7, then the unsorted view is like this
1\1
2\1
3\1
1\2
2\2
3\2
1\3
2\3
3\3

the same as the name search.
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: 48005
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Very old BUG - strange sorting order Branch View

Post by *ghisler(Author) »

2petermad
Please do not report unrelated problems here, it causes a lot of confusion.

2Gral
I will check it, thanks.
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 14700
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Very old BUG - strange sorting order Branch View

Post by *petermad »

ghisler(Author) wrote: 2022-11-16, 16:08 UTC 2petermad
Please do not report unrelated problems here, it causes a lot of confusion.
Sorry, but I don't see how it is unrelated - the report is how the sort order is not always correct in Branch view after changing the column on which to sort by - I just came up with another example on how that can be seen.

Actually it seems like the the order of the directories are changed every time the sort order is changed to another column (exept for name - it is always correct). Place the cursor on 1/1 and then change the sort column first to Ext. then Size , then Date and then back to Ext. and see how Ext. is not sorting the same way as it was in the first place - don't tell me that it is not related...

The above is assuming that the date of all the folders are the same and that the date and size of all the files are the same - in which case the soreting of all columns should be the same as for Name in normal order.
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: 48005
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Very old BUG - strange sorting order Branch View

Post by *ghisler(Author) »

Sorry, I misinterpreted your post, I thought it was about unsorted view.
Author of Total Commander
https://www.ghisler.com
kapela86
Junior Member
Junior Member
Posts: 22
Joined: 2013-08-12, 21:28 UTC
Location: Poland

Order of files reversed when using Ctrl+B and sorting by extension

Post by *kapela86 »

Tested in latest 10.52, steps to reproduce:
1. Create a "test" dir, enter it and create following directories

Code: Select all

Dir1
Dir2
Dir3
Dir4
2. Enter each one of them and create empty txt file with same name and extension in each one, for example "a.txt"
3. Final files structure will look like this:

Code: Select all

E:\test\Dir1\a.txt
E:\test\Dir2\a.txt
E:\test\Dir3\a.txt
E:\test\Dir4\a.txt
4. Now go to "test" dir, sort list by extension, press Ctrl+B and notice that files are displayed in reverse order (you can see that first file is from Dir4)
Image: https://i.imgur.com/1MtJCav.png
User avatar
petermad
Power Member
Power Member
Posts: 14700
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Order of files reversed when using Ctrl+B and sorting by extension

Post by *petermad »

This seems to be the same bug as reported here: viewtopic.php?p=424115#p424115
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
white
Power Member
Power Member
Posts: 4576
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: Very old BUG - strange sorting order Branch View

Post by *white »

Moderator message from: white » 2023-02-18, 11:39 UTC

Threads about the same topic merged.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48005
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Very old BUG - strange sorting order Branch View

Post by *ghisler(Author) »

This should be fixed in TC 11 beta, please test it.
Fixed: Branch view, sort by extension, size or time: Sort by directory if both extension and name are the same
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 14700
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Very old BUG - strange sorting order Branch View

Post by *petermad »

2ghisler(Author)

Almost fixed exept when in Unsorted mode before pressing Ctrl+B
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: 48005
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Very old BUG - strange sorting order Branch View

Post by *ghisler(Author) »

Sorry, I don't understand your remark. This bug report is about "strange sorting order Branch View".
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 14700
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Very old BUG - strange sorting order Branch View

Post by *petermad »

If Unsorted view is enabled before pressing Ctrl-B the folders-files mentioned in the first post is initially sorted like this (NTFS partition):
1\1
1\2
1\3
2\1
2\2
2\3
3\1
3\2
3\3

if I thereafter press Ctrl+F3, the order is the expected:
1\1
2\1
3\1
1\2
2\2
3\2
1\3
2\3
3\3

And if I then press Ctrl+F7 - the order stays the same instead of reverting to the initial sorting. I believe the initial is wrong.

But it is no big deal - I am probably one of the very few persons that uses Unsorted as default
Last edited by petermad on 2023-05-04, 16:42 UTC, edited 1 time in total.
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: 48005
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Very old BUG - strange sorting order Branch View

Post by *ghisler(Author) »

Could you try to explain it a bit better?
1. How do you see folders with files without Ctrl+B?
2. Why do you press Ctrl+F7 after Ctrl+F3 when you already ARE in unsorted mode? This doesn't change anything?
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 14700
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Very old BUG - strange sorting order Branch View

Post by *petermad »

1. How do you see folders with files without Ctrl+B?
I don't. What I meant is that I set Unsorted mode before I press Ctrl+B, and once I am in Branch view I see this order:
1\1
1\2
1\3
2\1
2\2
2\3
3\1
3\2
3\3

The above is what I see in the status line when placing the cursor over the entries one by one from the top down-
2. Why do you press Ctrl+F7 after Ctrl+F3 when you already ARE in unsorted mode? This doesn't change anything?
This is just to illustarte that if I, while in Branch view, change sort mode with Ctrl+F3 and thereafter change if back to Unsorted mode with Ctrl+F7, I do not get the sort order as I saw after I initially pressed Ctrl+B, instead there is no difference between the Name sort order and the Unsorted order (which I think is correct)

So it is the Initial sort order right after Branch is enabled, when the previous view was Unsorted (before Ctrl+B) that seems to be incorrect to me
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
Gral
Power Member
Power Member
Posts: 1460
Joined: 2005-01-26, 15:12 UTC

Re: Very old BUG - strange sorting order Branch View

Post by *Gral »

ghisler(Author) wrote: 2023-05-04, 14:55 UTC 1. How do you see folders with files without Ctrl+B?
Look at status bar.

2 petermad
I'm not sure which sort order is correct in this case.
Post Reply