Section One BBS

Welcome, Guest.


Subject: Re: Explorer filename sorting - disable ignoring of the hyphen ("-") c Date: Thu Jan 31 2019 07:14 pm
From: address@not.available To: All

Path:
eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!b
order1.nntp.ams1.giganews.com!nntp.giganews.com!bcyclone05.am1.xlned.com!bcyclo
ne05.am1.xlned.com!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!nzpost1.xs4all.n
et!not-for-mail
From: "R.Wieser" <address@not.available>
Newsgroups: microsoft.public.windowsxp.help_and_support
References: <56f83d9f$0$5870$e4fe514c@news.xs4all.nl>
<dlti27F7ubkU1@mid.individual.net>
Subject: Re: Explorer filename sorting - disable ignoring of the hyphen ("-")
char ?
Date: Tue, 29 Mar 2016 10:18:24 +0200
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2615.200
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200
Lines: 105
Message-ID: <56fa3a52$0$5939$e4fe514c@news.xs4all.nl>
NNTP-Posting-Host: 83.163.119.5
X-Trace: 1459239506 news.xs4all.nl 5939 83.163.119.5:1580
X-Complaints-To: abuse@xs4all.nl
X-Received-Bytes: 4280
X-Received-Body-CRC: 1316380031
Xref: mx02.eternal-september.org
microsoft.public.windowsxp.help_and_support:31840

VanguardLH,

> Yep, Microsoft handles the hyphen a bit weird, like they ignore it.
....
> To get the same order using the 'dir' command, you have to add
> the /on argument, as in:

Thanks for confirming my posted observations.

> They are doing something goofy regarding non-alphanumeric
> characters.

Yep, that was my conclusion too.   It might well be only the hyphen symbol
though, but who knows.

When wrote the above I realized I did not even search for an MS explanation
to this sorting behaviour.  Alas, a quick search did not turn up anything in
that regard ...

And that brings me back to my initial question: How do I get Windows to drop all
kinds of fancy sorting rules and revert to (something like) ASCII order
?

.... though I would not mind if upper and lowercase differences are ignored
(man, I do not make it easy, do I ? :-D )

Regards,
Rudy Wieser


-- Origional message:
VanguardLH <V@nguard.LH> schreef in berichtnieuws
dlti27F7ubkU1@mid.individual.net...
> 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)

Previous Message       Next Message