Subj : Re: Explorer filename sorting - disable ignoring of the hyphen ("-") c
To   : All
From : [email protected]
Date : Thu Jan 31 2019 07:14 pm

Path:
eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!n
ewsfeed.kamp.net!newsfeed.kamp.net!fu-berlin.de!uni-berlin.de!individual.net!no
t-for-mail
From: VanguardLH <[email protected]>
Newsgroups: microsoft.public.windowsxp.help_and_support
Subject: Re: Explorer filename sorting - disable ignoring of the hyphen ("-")
char ?
Date: Mon, 28 Mar 2016 15:21:27 -0500
Organization: Usenet Elder
Lines: 68
Sender: VanguardLH <>
Message-ID: <[email protected]>
References: <[email protected]>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Trace: individual.net 7tQpVbhwHAv/IYZNNT8G6wQozLKcU8QJgQ+R2hLh8Pz6dn63eC
Keywords: VanguardLH VLH811
Cancel-Lock: sha1:YAWu6ZFcwYO9zzvlGXQLuQ0e9mU=
User-Agent: 40tude_Dialog/2.0.15.41
Xref: mx02.eternal-september.org
microsoft.public.windowsxp.help_and_support:31839

R.Wieser wrote:

> My previous subject "Explorer filename sorting problem - NoStrCmpLogical
> already present" has evolved into a much simpler one: How do I get XP's
> explorer (but the "dir" command too!) to stop ignoring the minus sign inside
> filenames
>
> 60.00.00.32.dds
> 60.00.00.32.msh
> 60.00.00.32.nif
> 60.00.32.32.dds
> 60.00.-32.32.dds
> 60.00.32.32.msh
> 60.00.-32.32.msh
> 60.00.32.32.nif
> 60.00.-32.32.nif
>
> the reason why the above is "sorted" as it is -- with the third column
> showing an interleaved "33" and "-32" -- is because the minus sign is
> regarded as a hyphen (a word-coupling character) and ignored.  The above
> list than translates to:
>
> 60.00.00.32.dds
> 60.00.00.32.msh
> 60.00.00.32.nif
> 60.00.32.32.dds
> 60.00.32.32.dds
> 60.00.32.32.msh
> 60.00.32.32.msh
> 60.00.32.32.nif
> 60.00.32.32.nif
>
> ... which makes (some sort of) sense.
>
> But as those "-" characters inthge first list are *NOT* hypens (but
> minus-signs) that second list isn't reflecting the meaning of the filenames
> contents. :-(
>
> tl;dr:
> How do I get XP's explorer (and "dir" command too) to stop ignoring the
> minus sign inside filenames.
>
> Or more in general: How do I stop it from treating *any* character
> specially, and just sort all of them on their binary value.

Had some more time to play.  Yep, Microsoft handles the hyphen a bit
weird, like they ignore it.  They are doing something goofy regarding
non-alphanumeric characters.

What I did was to replace the hyphen with a different non-alphanumeric
character, like tilde, underscore, or backquote, so the list looks like:

60.00.~32.32.nif       60.00._32.32.nif      60.00.`32.32.nif
60.00.~32.32.dds       60.00._32.32.dds      60.00.`32.32.dds
60.00.~32.32.msh       60.00._32.32.msh      60.00.`32.32.msh
60.00.00.32.dds        60.00.00.32.dds       60.00.00.32.dds
60.00.00.32.msh   or   60.00.00.32.msh   or  60.00.00.32.msh
60.00.00.32.nif        60.00.00.32.nif       60.00.00.32.nif
60.00.32.32.dds        60.00.32.32.dds       60.00.32.32.dds
60.00.32.32.msh        60.00.32.32.msh       60.00.32.32.msh
60.00.32.32.nif        60.00.32.32.nif       60.00.32.32.nif

To get the same order using the 'dir' command, you have to add the /on
argument, as in:

dir /on

(or 'dir /o-n' if you descend sort in Windows Explorer).
--- Platinum Xpress/Win/WINServer v3.1
* Origin: Prison Board BBS Mesquite Tx  //telnet.RDFIG.NET www. (1:124/5013)