Using a - in filenames
Moderators: Hacker, petermad, Stefan2, white
Using a - in filenames
when using a '-' sign in front of a filename doesn't effect the way it is listed.
example:
a.zip
b.zip
c.zip
is listed the same if name b.zip is changed to -b.zip:
a.zip
-b.zip
c.zip
this is not the case with other signs as '+' or '_'. In this case the file will all be listed first:
+b.zip
a.zip
c.zip
Is there any special reason for why "-" is not sorted ?
example:
a.zip
b.zip
c.zip
is listed the same if name b.zip is changed to -b.zip:
a.zip
-b.zip
c.zip
this is not the case with other signs as '+' or '_'. In this case the file will all be listed first:
+b.zip
a.zip
c.zip
Is there any special reason for why "-" is not sorted ?
...BRB...
-
- Junior Member
- Posts: 66
- Joined: 2003-02-07, 23:44 UTC
I'm using XP Pro, Swedish version and TC 5.51. In my box, -b.zip also stays between a.zip and c.zip as in your W2k box. Maybe it's the language dependant sorting methods?Maxwish wrote: I'm using win2k + sp4.
Strange, would not think this was OS dependant.
Using Windows without Total Commander is like driving a car without a steering wheel!
the penny has fallen:Hacker wrote:Any special SortUpper setting in wincmd.ini?
by adding SortUpper=1 to wincmd.ini changes this.
looking in history.txt of v3.50:
Guess this effects the minus (-) sorting also ???03.10.97 Added: switch SortUpper=1 causes underscores to be sorted at the END of the file list
...BRB...
Here's my test directory with 5 files: a.txt to e.txt
SortUpper=0
SortUpper=1
Still a bit strange, if you ask me....
2DJK
complete history:
http://clubtotal.free.fr/tc_tools/tctxt_full_history.zip
SortUpper=0
Code: Select all
_d.txt (underscore listed at top : default sorting)
+b.txt ('plus ' before 'letters')
a.txt
-c.txt ('minus' has no effect) !!!
e.txt
Code: Select all
+b.txt ('plus ' before 'letters')
-c.txt ('minus' now before 'letters') !!!
a.txt
e.txt
_d.txt (underscore listed at bottom : by ini setting)
2DJK
complete history:
http://clubtotal.free.fr/tc_tools/tctxt_full_history.zip
...BRB...
- ghisler(Author)
- Site Admin
- Posts: 50475
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
OK, to clear the confusion:
With SortUpper=1, Total Commander converts the names to uppercase, and then compares them character by character.
With SortUpper=0, Total Commander calls the string compare function of the operating system, to get the exact same sort order as in Explorer. This sort order is depending on national character sorting, e.g. to handle accents.
With SortUpper=1, Total Commander converts the names to uppercase, and then compares them character by character.
With SortUpper=0, Total Commander calls the string compare function of the operating system, to get the exact same sort order as in Explorer. This sort order is depending on national character sorting, e.g. to handle accents.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com