Page 1 of 2

Very old BUG - strange sorting order Branch View

Posted: 2022-11-15, 15:02 UTC
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!

Re: Very old BUG - strange sorting order Branch View

Posted: 2022-11-15, 21:12 UTC
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.

Re: Very old BUG - strange sorting order Branch View

Posted: 2022-11-16, 16:08 UTC
by ghisler(Author)
2petermad
Please do not report unrelated problems here, it causes a lot of confusion.

2Gral
I will check it, thanks.

Re: Very old BUG - strange sorting order Branch View

Posted: 2022-11-17, 15:08 UTC
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.

Re: Very old BUG - strange sorting order Branch View

Posted: 2022-11-18, 10:56 UTC
by ghisler(Author)
Sorry, I misinterpreted your post, I thought it was about unsorted view.

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

Posted: 2023-02-18, 09:30 UTC
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

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

Posted: 2023-02-18, 11:08 UTC
by petermad
This seems to be the same bug as reported here: viewtopic.php?p=424115#p424115

Re: Very old BUG - strange sorting order Branch View

Posted: 2023-02-18, 11:39 UTC
by white

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

Threads about the same topic merged.

Re: Very old BUG - strange sorting order Branch View

Posted: 2023-05-03, 19:34 UTC
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

Re: Very old BUG - strange sorting order Branch View

Posted: 2023-05-03, 21:43 UTC
by petermad
2ghisler(Author)

Almost fixed exept when in Unsorted mode before pressing Ctrl+B

Re: Very old BUG - strange sorting order Branch View

Posted: 2023-05-04, 07:22 UTC
by ghisler(Author)
Sorry, I don't understand your remark. This bug report is about "strange sorting order Branch View".

Re: Very old BUG - strange sorting order Branch View

Posted: 2023-05-04, 12:01 UTC
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

Re: Very old BUG - strange sorting order Branch View

Posted: 2023-05-04, 14:55 UTC
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?

Re: Very old BUG - strange sorting order Branch View

Posted: 2023-05-04, 16:39 UTC
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

Re: Very old BUG - strange sorting order Branch View

Posted: 2023-05-04, 16:59 UTC
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.