Which is the right order for files to be sorted?

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
Fotis_Greece
Junior Member
Junior Member
Posts: 13
Joined: 2004-03-06, 14:07 UTC

Which is the right order for files to be sorted?

Post by *Fotis_Greece »

I have some files and three directories.
When I open Windows Explorer I can see them in the following order which I assume is the correct one

OfficeXP GR
OfficeXP_Admin
OfficeXPAddIns
01.txt
1.txt
02.txt
2.txt
10.txt

In TC I can see them in the following order
OfficeXP GR
OfficeXP_Admin
OfficeXPAddIns
01.txt
02.txt
1.txt
10.txt
2.txt

I insert the following in the wincmd.in SortUpper=2 and then in TC I can see them in the following order
OfficeXP_Admin
OfficeXPAddIns
OfficeXP GR
01.txt
1.txt
02.txt
2.txt
10.txt

It seems that this setting SortUpper=2 sorts the files in the correct way but NOT the directories. Could somebody tell me why does this thing happen and is there a way to correct it?
Thanks in advance
User avatar
ThurahT
Member
Member
Posts: 112
Joined: 2003-07-24, 14:43 UTC

Post by *ThurahT »

You must tell totalcmdr to handle DIRs as files before u can sort them. I think...? I'm no power user. Just a 24/7 user. And the first example u gave bout TC

"In TC I can see them in the following order
OfficeXP GR
OfficeXP_Admin
OfficeXPAddIns
01.txt
02.txt
1.txt
10.txt
2.txt"

is the right way to sort files. I am sure that ppl will corect me if I am wrong. : D

HTH some.
ThurahT
IGL
Member
Member
Posts: 179
Joined: 2004-02-26, 10:47 UTC
Location: Poland

Post by *IGL »

Normally the first TC example is standard sorting.
But with SortUpper=2 you want to have different behaviour.
Numbers are sorted in more "humanoidal" way, eg: 1,5,9,10,11,20 intead of standard sorting: 1,10,11,20,5,9.
Also spaces are put first in standard sorting (before letter a), but in SortUpper=2 mode space are ignored, therfore OfficeXP GR is equal to OfficeXPGR. However behaviour with character "_" is unchanged - this character is still sorted before letter a. If you want to know more just create files/dirs with various names containing spaces and numbers and see how the sorting changes.
:-)
Post Reply