Filename sort order: Is there a char to put files after Z ?

English support forum

Moderators: Hacker, petermad, Stefan2, white

User avatar
chrizoo
Senior Member
Senior Member
Posts: 351
Joined: 2008-03-12, 02:42 UTC

Filename sort order: Is there a char to put files after Z ?

Post by *chrizoo »

Hi. I sometimes add the characters ! or + to a filename or directory name so that they are shown first when TC sorts by filename.

Now I have tried, but I could not find any special character which would send a file to the bottom of the list, i.e. after those files beginning with a "Z".

Is there really none ?
Last edited by chrizoo on 2008-03-25, 18:11 UTC, edited 1 time in total.
User avatar
petermad
Power Member
Power Member
Posts: 16094
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

æ, ä, ø, ö, å all comes after z - If you don't have a Danish/Norwegian keyboard you can make å by pressing Alt+0229 (num keyboard)

But the sorting also depends on your setting of SortUpper in wincmd.ini.
License #524 (1994)
Danish Total Commander Translator
TC 11.55rc4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1393a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
philbo
Junior Member
Junior Member
Posts: 4
Joined: 2008-03-25, 13:56 UTC

Post by *philbo »

Just a thought: if you were to change the sort method (in Config/Display) to "Strictly by numeric character code", then all those that come after z will be at the bottom.
User avatar
Clo
Moderator
Moderator
Posts: 5731
Joined: 2003-12-02, 19:01 UTC
Location: Bordeaux, France
Contact:

with "2"

Post by *Clo »

2petermad

:) Hello Peter !

• That's true only when you are not using the full natural sorting (SortUpper=3).
- Here (with "3"), these characters are placed near the closest ones…

:mrgreen: FR
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: 16094
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

2Clo
Here (with "3"), these characters are placed near the closest ones
We are both right, in a way. I checked it further - the natural sorting (sortUpper=3) is dependant on the language setting of the computer - on my wifes PC which is setup to English, I get the same result as you, where those 4 characters are placed next to a and o. In the Scandinavian languages those characters are considered the last in the alphabet - they are not considered as accented variants of a and o, hence they are shown after z on a Danish PC.

So I have to try again to find somethings that comes after z in natural sorting.
License #524 (1994)
Danish Total Commander Translator
TC 11.55rc4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1393a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
chrizoo
Senior Member
Senior Member
Posts: 351
Joined: 2008-03-12, 02:42 UTC

Post by *chrizoo »

Wow ... I have never seen this on any forum anywhere else ... a question and then 4 answers in a couple of seconds (well, kind of), faster than I could come back here and see ...
Love you guys ;)
Just to paying tribute to a really caring community here ...

OK, so now for the technical part ;) ...
I didn't know SortUpper. I have now found this thread from 2005 ... is the info still up2date ?
Or is there an official webpage somewhere for the SortUpper settings ... or, by the way, for any wincmd.ini setting for that matter ?

The very first thing I have tried before posting, was ALT+0 to ALT+255 (should have mentioned that). Not a single character I produced was coming after Z. They were either going before A or somewhere between A-Z according to the char they resemble.

my desired sortorder would be the following: Sort accented variants (äáüè etc.) like the standard letters they correspond to, for example sort Ä like A (or at least before B!). But for the "rest" of the chars (by rest I mean all the special characters (=non-letters) like [ or # ), I would love to sort them "Strictly by numeric character code" (thanks philbo!). Is that combination possible ?
(sorting strictly by numeric code is indeed the most logical way for non-letters, but for letters it's not helpful if "a" comes after "Z" ... )

If that is not possible, I would at least need one char (a single one would really be enough!), which comes after Z.
In the abovementioned thread I found :
SortUpper=1 : When sorting files, put files starting with an underscore _ last
.
This would do the trick, right? I'd keep my sort order but would have one char that comes after Z, namely the underscore, right?

The coolest thing would be if one could attribute "sorting values" to the char codes ...
for example in wincmd.ini

Code: Select all

[CharsetSort]
#000=0
#001=1
...
#131=97
...
#255=255
PS: I'm still on TC6.51 unfortunately ... I think "Strictly by numeric character code" or any other sort option is not part of the configuration options. But I do have SortUpper in wincmd.ini. So I guess TC7 only adds a visual frontend, but the underlying function has not changed, right ?
User avatar
chrizoo
Senior Member
Senior Member
Posts: 351
Joined: 2008-03-12, 02:42 UTC

Post by *chrizoo »

Buuuuuh .... :( ... I just tried SortUpper=1 and it puts the underscore last indeed, like quoted above. But it also changes the sort order of the accented letters ... now Ä comes after Z ... So it's not just the underscore that the "1" option is changing .... :x
Rick Waters
Junior Member
Junior Member
Posts: 8
Joined: 2008-03-15, 16:03 UTC
Location: Deux-Montagnes QC.

Post by *Rick Waters »

if results are all you want

then you could use something like zz_ or zz& as a prefix

does it have to be one character?

Rick
User avatar
chrizoo
Senior Member
Senior Member
Posts: 351
Joined: 2008-03-12, 02:42 UTC

Post by *chrizoo »

Hey Rick, you seem to run after me and provide solutions in all the topics I post, right ... ? :mrgreen:

Thanks for the hint. I mean, yes that would work ... It's just that I was hoping for a slightly more aesthetical solution than Ämovies or ZZmovies ( ... or XXXmovies .... :P )
User avatar
petermad
Power Member
Power Member
Posts: 16094
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

S: I'm still on TC6.51 unfortunately ... I think "Strictly by numeric character code" or any other sort option is not part of the configuration options. But I do have SortUpper in wincmd.ini. So I guess TC7 only adds a visual frontend, but the underlying function has not changed, right ?
Correct!

BTW You really should update to TC 7. Don't hesitate - just install it over your old TC, it is fully backwards compatible.

Still haven't found any character that sorts after z - sorry.
License #524 (1994)
Danish Total Commander Translator
TC 11.55rc4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1393a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
chrizoo
Senior Member
Senior Member
Posts: 351
Joined: 2008-03-12, 02:42 UTC

Post by *chrizoo »

you should update
I will, ... as soon as I can ... promised... (okay?) :mrgreen:

but what about SortUpper=1 then ? Apparently it does not work as described in the topic I mentioned above.
User avatar
petermad
Power Member
Power Member
Posts: 16094
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

Regarding Sortupper=1 - It is correct that the help file says:
0: Default sort method
1: When sorting files, put files starting with an underscore _ last
2: Uses mixed lexical and numerical sorting, e.g. file10.txt comes AFTER file1.txt
3: Like 2, but uses StrCmpLogicalW for the comparison. 3 needs IE 6.x installed!
But the setup dialog in TC 7 says:
0: Alphabetical, considering accents
1: Strictly by numeric character code
2: Natural sorting: by character code and numbers
3: Natural sorting: alphabetical and numbers"
So you see according to that SortUpper=1 gives you sorting ny character code, but unfortunately all the accented characters comes after the underscore .
License #524 (1994)
Danish Total Commander Translator
TC 11.55rc4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1393a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Clo
Moderator
Moderator
Posts: 5731
Joined: 2003-12-02, 19:01 UTC
Location: Bordeaux, France
Contact:

No marking off---

Post by *Clo »

2chrizoo

:) Hello !

• Actually, the list of choices in the options shown by petermad doesn't display the digits he wrote
as corresponding to the SortUpper=… flags…
- I proposed to add them in the languages files (you can use a standalone <English.lng> as well “WCMD_ENG.LNG”),
but my proposal has been shot down in flames :|

:mrgreen: KR
Claude
Clo
#31505 Traducteur Français de TC French translator Aide en Français Tutoriels Français English Tutorials
User avatar
chrizoo
Senior Member
Senior Member
Posts: 351
Joined: 2008-03-12, 02:42 UTC

Re: No marking off---

Post by *chrizoo »

thanks guys.

So is there a number that actually corresponds to the desired behaviour I posted above ?

And since there seem to be some discrepancies in the description of what SortUpper does, I would like to reiterate my question if there is webpage where all of the wincmd.ini settings are listed in one place ... (somewhat like the wiki that exists for the about:config settings in Firefox ...) ?
Clo wrote: Actually, the list of choices in the options shown by petermad doesn't display the digits he wrote
as corresponding to the SortUpper=… flags…
Salut Clo, I'm afraid I don't really understand what you are talking about here ... ?? [headscratching]
I proposed to add them in the languages files (you can use a standalone <English.lng> as well “WCMD_ENG.LNG”),
but my proposal has been shot down in flames :|
Once more ... your suggestions are either shot down in flames or - worse - completely ignored ... if this continues like that I'll organize a protest march for you or a petition or something like that ...
no, seriously ! :roll:
BTW, do you watch the "dupes topic" ? I've given a bit of comments over there ... I hope Mr.Ghisler reads ...
And I really hope that your excellent suggestion gets implemented one day ... I mean you posted that years ago!!
User avatar
petermad
Power Member
Power Member
Posts: 16094
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

I don't really understand what you are talking about here
Clo just means that the numbers 0, 1, 2, 3 in the options are put in by me, they are not there in the real dialog, which clo thinks they ought to be.
...if there is webpage where all of the wincmd.ini settings are listed in one place
They are in the Help file under:
4. Configuration and switches
b. INI-File settings: wincmd.ini, wcx_ftp.ini (for FTP)
License #524 (1994)
Danish Total Commander Translator
TC 11.55rc4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1393a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Post Reply