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
ews.mixmin.net!newsreader4.netcologne.de!news.netcologne.de!fu-berlin.de!uni-be
rlin.de!individual.net!not-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 04:54:37 -0500
Organization: Usenet Elder
Lines: 78
Sender: VanguardLH <>
Message-ID: <
[email protected]>
References: <
[email protected]>
<
[email protected]> <
[email protected]>
<
[email protected]> <
[email protected]>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Trace: individual.net 4ykgvcs3n2jeCN7bAEei5AhcyEdWJzSezCCzUJG3bpWDwUcZNr
Keywords: VanguardLH VLH811
Cancel-Lock: sha1:VwbB3SGlFezD6Ic9jxaurYy9dYM=
User-Agent: 40tude_Dialog/2.0.15.41
Xref: mx02.eternal-september.org
microsoft.public.windowsxp.help_and_support:31834
I did not know what you were trying to represent with your "translated"
list of filenames and there were no example filenames containing "33".
Using only your 1st list of filenames, which were:
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
I put those into a file (input.txt) and ran it through the 'sort'
program by running at the command line:
sort input.txt /o output.txt
The sorted output looked like:
60.00.-32.32.dds
60.00.-32.32.msh
60.00.-32.32.nif
60.00.00.32.dds
60.00.00.32.msh
60.00.00.32.nif
60.00.32.32.dds
60.00.32.32.msh
60.00.32.32.nif
^
|__ differentiates starting here (col 7)
Is this 2nd list what you expected for sort order for the filenames
shown in Windows Explorer? This is a simple columnar sort, so at
character position #7, the output sort order is due to ASCII order of:
"-" is before "0"
"0" is is before "3"
I think you mentioned something about extension grouping in your other
thread. Perhaps you have Windows Explorer configured to sort by
filetype rather than by filename. Make sure Windows Explorer is
configured to sort by Name and not by Type.
Did sorting work when you used ALL signed numerical values (+ for
positive values, - for negative values) instead of just adding a hyphen
to the negative numerical values? With the same column of values all
signed so the input looked like:
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 'sort' program produced an output list of:
60.00.-32.32.dds
60.00.-32.32.msh
60.00.-32.32.nif
60.00.+00.32.dds
60.00.+00.32.msh
60.00.+00.32.nif
60.00.+32.32.dds
60.00.+32.32.msh
60.00.+32.32.nif
This has all the negative values listed before the zero values before
the positive values (columns 7-9, inclusive)
Alas, I'm not at a Windows XP machine right now to see if Windows
Explorer will sort in the same order as the 'sort' program.
--- Platinum Xpress/Win/WINServer v3.1
* Origin: Prison Board BBS Mesquite Tx //telnet.RDFIG.NET www. (1:124/5013)