Very old BUG - strange sorting order Branch View
Moderators: Hacker, petermad, Stefan2, white
Very old BUG - strange sorting order Branch View
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!
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!
Re: Very old BUG - strange sorting order Branch View
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.
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.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
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
- ghisler(Author)
- Site Admin
- Posts: 50383
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: Very old BUG - strange sorting order Branch View
2petermad
Please do not report unrelated problems here, it causes a lot of confusion.
2Gral
I will check it, thanks.
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
https://www.ghisler.com
Re: Very old BUG - strange sorting order Branch View
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.ghisler(Author) wrote: 2022-11-16, 16:08 UTC 2petermad
Please do not report unrelated problems here, it causes a lot of confusion.
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.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
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
- ghisler(Author)
- Site Admin
- Posts: 50383
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: Very old BUG - strange sorting order Branch View
Sorry, I misinterpreted your post, I thought it was about unsorted view.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Order of files reversed when using Ctrl+B and sorting by extension
Tested in latest 10.52, steps to reproduce:
1. Create a "test" dir, enter it and create following directories
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:
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
1. Create a "test" dir, enter it and create following directories
Code: Select all
Dir1
Dir2
Dir3
Dir4
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
Image: https://i.imgur.com/1MtJCav.png
Re: Order of files reversed when using Ctrl+B and sorting by extension
This seems to be the same bug as reported here: viewtopic.php?p=424115#p424115
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
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
Re: Very old BUG - strange sorting order Branch View
Moderator message from: white » 2023-02-18, 11:39 UTC
Threads about the same topic merged.
- ghisler(Author)
- Site Admin
- Posts: 50383
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: Very old BUG - strange sorting order Branch View
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
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
https://www.ghisler.com
Re: Very old BUG - strange sorting order Branch View
2ghisler(Author)
Almost fixed exept when in Unsorted mode before pressing Ctrl+B
Almost fixed exept when in Unsorted mode before pressing Ctrl+B
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
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
- ghisler(Author)
- Site Admin
- Posts: 50383
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: Very old BUG - strange sorting order Branch View
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
https://www.ghisler.com
Re: Very old BUG - strange sorting order Branch View
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
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.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
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
- ghisler(Author)
- Site Admin
- Posts: 50383
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: Very old BUG - strange sorting order Branch View
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?
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
https://www.ghisler.com
Re: Very old BUG - strange sorting order Branch View
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. How do you see folders with files without Ctrl+B?
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-
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)2. Why do you press Ctrl+F7 after Ctrl+F3 when you already ARE in unsorted mode? This doesn't change anything?
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.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
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
Re: Very old BUG - strange sorting order Branch View
Look at status bar.
2 petermad
I'm not sure which sort order is correct in this case.