Discussion:
Is sort by file name broken?!
(too old to reply)
james
2010-01-30 18:45:58 UTC
Permalink
I have several files when sorted by name in ascending order in windows
explorer, results in

8E.txt
8F.txt
9A.txt
9B.txt
84.txt
85.txt

This does not look very ascending order to me. Why would the 9A and 9B files
be sorted in the middle of the 8* files?

This applies to winXP, Vista, and windows 7.
Jonathan de Boyne Pollard
2010-01-31 04:50:25 UTC
Permalink
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<blockquote cite="mid:***@TK2MSFTNGP05.phx.gbl" type="cite">
<p>Why would the 9A and 9B files be sorted in the middle of the 8*
files?
</p>
</blockquote>
<p><a
href="http://blogs.msdn.com/oldnewthing/archive/2008/08/04/8824356.aspx">Because
9 is a smaller number than 84, and 8 is a smaller number than 9.</a></p>
</body>
</html>
james
2010-02-01 06:22:41 UTC
Permalink
"Jonathan de Boyne Pollard" <J.deBoynePollard-***@NTLWorld.COM> wrote in message news:***@J.de.Boyne.Pollard.localhost...
Why would the 9A and 9B files be sorted in the middle of the 8* files?

Because 9 is a smaller number than 84, and 8 is a smaller number than 9.


Now I understand. I guess this is to ensure file9, file10, file11 would be sorted in this order without having to add a leading zero to 9.

However, by adding this user friendliness feature it breaks the traditional alphanumeric sort order. I wish there is an option for the sort order.
Jonathan de Boyne Pollard
2010-02-02 06:50:16 UTC
Permalink
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<blockquote cite="mid:uM2$***@TK2MSFTNGP02.phx.gbl" type="cite">
<blockquote
style="border-left: 2px solid rgb(0, 0, 0); padding-left: 5px; padding-right: 0px; margin-left: 5px; margin-right: 0px;"
dir="ltr">
<blockquote cite="mid:***@TK2MSFTNGP05.phx.gbl"
type="cite">
<p>Why would the 9A and 9B files be sorted in the middle of the
8* files? </p>
</blockquote>
<p><a moz-do-not-send="true"
href="http://blogs.msdn.com/oldnewthing/archive/2008/08/04/8824356.aspx">Because
9 is a smaller number than 84, and 8 is a smaller number than 9.</a></p>
</blockquote>
<div dir="ltr">
<p><font face="Arial" size="2">Now I understand. I guess this is to
ensure file9, file10, file11 would be sorted in this order without
having to add a leading zero to 9.</font></p>
</div>
<div dir="ltr">
<p><font face="Arial" size="2">However, by adding this user
friendliness feature it breaks the traditional alphanumeric sort order.
I wish there is an option for the sort order.</font></p>
</div>
</blockquote>
<p>If you had read all of what was pointed to, including the articles
that it in turn points to, not only would you have found out that there
is, but you would have even found out exactly where it is too, as
documented in the MSKB article that is pointed to by Michael Kaplan.</p>
</body>
</html>

Loading...