Sorting directories.

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

Moderators: white, Hacker, petermad, Stefan2

adysko
Junior Member
Junior Member
Posts: 8
Joined: 2006-11-20, 14:00 UTC
Location: Glasgow, Scotland

Sorting directories.

Post by *adysko »

In version 6 when selected "sorting directories -> like files" resulted in directories without extensions being displayed first but now in version 7 this option doesn't seem to make any difference.
Adam Dyśko
User avatar
Clo
Moderator
Moderator
Posts: 5731
Joined: 2003-12-02, 19:01 UTC
Location: Bordeaux, France
Contact:

Sorting in INI

Post by *Clo »

2adysko

:) Hello ! Welcome aboard !

• "Like files" can show a logical difference when you sort by date or size !
- It stands for "Extension" too, but here, I get a folder named "A.x" at the end, like expected while not any other as an extension, as well with 6.55 as with 7.0…
• Please, check also what you have as flag in your <wincmd.ini> under [Configuration] for SortUpper=… (0, 1, 2, 3)
- I recommend you to set "3".

:mrgreen: Kind regards
Claude
Clo
#31505 Traducteur Français de TC French translator Aide en Français Tutoriels Français English Tutorials
User avatar
petermad
Power Member
Power Member
Posts: 14823
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

2adysko
Not confirmed!

What is your wincmd.ini setting of SortUpper? Do you have any non-English characters in the names of those directories?
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.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
HolgerK
Power Member
Power Member
Posts: 5406
Joined: 2006-01-26, 22:15 UTC
Location: Europe, Aachen

Post by *HolgerK »

Confirmed!
Sort by extension in TC6.55 wrote:a\
b\
b.1\
a.2\
Sort by extension in TC7b1 wrote:a\
a.2\
b\
b.1\
SortUpper = 2 in both configurations.

In TC7b1 "sort by extension" and "sort by name" is always the same!
"by size" or "by date" is okay.

Kind regards
Holger
Last edited by HolgerK on 2006-11-21, 01:46 UTC, edited 2 times in total.
User avatar
Clo
Moderator
Moderator
Posts: 5731
Joined: 2003-12-02, 19:01 UTC
Location: Bordeaux, France
Contact:

"3" here !

Post by *Clo »

2HolgerK

:) Hello !

• I use SortUpper=3 and I guess that Peter does so too ?

:mrgreen: KR
Claude
Clo
#31505 Traducteur Français de TC French translator Aide en Français Tutoriels Français English Tutorials
User avatar
HolgerK
Power Member
Power Member
Posts: 5406
Joined: 2006-01-26, 22:15 UTC
Location: Europe, Aachen

Post by *HolgerK »

2Clo
SortUpper makes no difference.
But this seems to be no bug:
history.txt wrote:07.05.06 Modif: Never sort directories by extension - when sorting by extension and dirs are sorted like names, sort dirs by name
Kind regards
Holger

Edit:
Maybe only one missing wincmd.ini flag: SortDirsByExt=[1|0]
from this http://ghisler.ch/board/viewtopic.php?p=54840#54840 thread?
User avatar
petermad
Power Member
Power Member
Posts: 14823
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

2HolgerK
You are right, there is a difference when you explicitly sort by extension, but that wasn't what adysko wrote about - he claimed that there was a difference just because there was an extension, he didn't write that he had chosen to sort by extension.
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.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
HolgerK
Power Member
Power Member
Posts: 5406
Joined: 2006-01-26, 22:15 UTC
Location: Europe, Aachen

Post by *HolgerK »

petermad wrote:2HolgerK
... , he didn't write that he had chosen to sort by extension.
But he also didn't write explicitly, that the sort order was by name.

Kind regards
Holger
adysko
Junior Member
Junior Member
Posts: 8
Joined: 2006-11-20, 14:00 UTC
Location: Glasgow, Scotland

Post by *adysko »

Thank you for all the responses. I want to clarify a few things:
1. I used the same wincmd.ini file as I had been using for the previous versions of TC so that is why I was surprised to see the difference.
2. My setting of SortUpper=0 but it does not make any difference whether it is 1, 2 or 3. Just the same.
3. The behaviour I experience is this:
a) if I set Sorting Directories -> always by name it does sort directories always by name regardless of the if this is Name, extension, size or Date sorting order in the window.
b) if I set Sorting Directories -> Like files it does sort by time OK but if I sort by name, extension or size it does not make any difference, it is by names all the time. The directories without do not come first as they used to before.
Here is an example order of directories I get regardless whether it is name or extension sorting:

[Atp60HzDemo.atp] <DIR> 20/10/2004 08:35 ----
[AtpARCDemo.zzz] <DIR> 02/08/2005 10:39 ----
[AtpDrawDemo.atp] <DIR> 07/06/2004 11:03 ----
[ATPDualCircuit.atp] <DIR> 07/06/2004 11:03 ----
[CC_MODEL] <DIR> 07/06/2004 11:03 ----

I changed atp to zzz to see if it would change the order but it dosn't.

4. I do not use any non-English characters in file/directory names.

I hope this helps.
Adam Dyśko
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48104
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Yes, this was changed by popular demand. Dots in directories aren't really meant as extensions (you cannot open directories with associated programs this way).
Author of Total Commander
https://www.ghisler.com
adysko
Junior Member
Junior Member
Posts: 8
Joined: 2006-11-20, 14:00 UTC
Location: Glasgow, Scotland

Post by *adysko »

ghisler(Author) wrote:Yes, this was changed by popular demand. Dots in directories aren't really meant as extensions (you cannot open directories with associated programs this way).
Thank you ghisler for this clarification. I admit I do not fully understand the logic behind this change. Although, extensions in directories are not the same as in files, one can use them to group different types of directories together which I found quite useful. What is now the purpose of the 'sorting directories' option in TC if it does not do what it says? I also do not see how this additional option was inconvenient to anyone if you can simply choose 'Always by name' and forget about extensions. It just doesn't make much sense to me but I suppose on my own I am not able to create enough momentum to counterbalance popular demand. :wink:
Great program though, I've been using it for many years. Many Thanks!
Adam Dyśko
icfu
Power Member
Power Member
Posts: 6052
Joined: 2003-09-10, 18:33 UTC

Post by *icfu »

You can see the differences in sorting by size when you press Shift+Alt+Enter or you are using a custom column with DirSizeCalc for example...

Icfu
This account is for sale
User avatar
Hacker
Moderator
Moderator
Posts: 13073
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

adysko,
What is now the purpose of the 'sorting directories' option in TC if it does not do what it says?
It does what it says - "Like files (also by time)".

HTH
Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
adysko
Junior Member
Junior Member
Posts: 8
Joined: 2006-11-20, 14:00 UTC
Location: Glasgow, Scotland

Post by *adysko »

That is true, time and size sorting works fine. I forgot to press Shift+Alt+Enter. Still, I think that extension (or a name after last dot) sorting would be useful too.
Last edited by adysko on 2006-11-22, 16:57 UTC, edited 1 time in total.
Adam Dyśko
adysko
Junior Member
Junior Member
Posts: 8
Joined: 2006-11-20, 14:00 UTC
Location: Glasgow, Scotland

Post by *adysko »

I suppose this is all about what 'extension' really mean? Am I right? If you define it as anything after the last dot, directories should be sorted as in previous versions of TC but if you insist directories cannot have extensions since they cannot be associated with applications then dots should be ignored as it is done now.
Personally, I am happy with the first definition.
Adam Dyśko
Post Reply