Windows Explorer sort bug

  • Thread starter Thread starter Ayush
  • Start date Start date
A

Ayush

[Jeff Rollason] wrote-:
> Surprising as it may seem, the version of Windows Explorer I have seems to
> have a fundamental bug. It does not fully sort names correctly. I am using
> Windows Xp Home Vers 5.1 build 2600.xpsp_sp2_rtm.040803-2158
> I have a directory with 5248 files and 179 directories. Among these, if sort
> by name, I get the ordering
> ..
> SHOG_B8N.ZIP
> SHOG_B9L.ZIP
> SHOG_B60.ZIP
> ..
>
> Testing this with 2 other 3rd party directory utilities (including one
> commercial product I authored) shows no problem.


That is not a bug, it is XP's intuitive filename sorting*. The order is 8,9,60.
You can turn it off if you want -
TweakUI > Explorer > Uncheck "Use intuitive filename sorting"
OR
Start > Run > Regedit >
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
Create new BINARY value: NoStrCmpLogical and set data to : "01 00 00 00"



* From TweakUI:
If you check this box, Explorer will sort so that, e.g. "File 5" comes before
"File 10" because 5 comes before 10. If you uncheck this box, then explorer
will use literal sorting, in which case "File 10" will come before "File 5" because
1 comes before 5.

Good Luck, Ayush.
--
XP-Tips [Create a keyboard shortcut to open a folder] :
http://www.microsoft.com/windowsxp/using/setup/tips/foldershortcut.mspx
 
Surprising as it may seem, the version of Windows Explorer I have seems to
have a fundamental bug. It does not fully sort names correctly. I am using
Windows Xp Home Vers 5.1 build 2600.xpsp_sp2_rtm.040803-2158
I have a directory with 5248 files and 179 directories. Among these, if sort
by name, I get the ordering
...
SHOG_B8N.ZIP
SHOG_B9L.ZIP
SHOG_B60.ZIP
...

Testing this with 2 other 3rd party directory utilities (including one
commercial product I authored) shows no problem.

I also have a problem that the sort order anyway seem to by EBCDIC rather
than ASCII, so that ABC comes before 0123 etc.. I guess the latter is some
configuration problem (All my regional setting are correct)
 
Well, B60 comes after B8 or B9. If it was 6o, I might wonder.
The Oh in SHOG shows/looks different than the zer0 in 60.

"Jeff Rollason" <Jeff Rollason@discussions.microsoft.com> wrote in message
news:14FEA466-A770-48C3-925E-75FF2A2224C0@microsoft.com...
>
> Surprising as it may seem, the version of Windows Explorer I have seems to
> have a fundamental bug. It does not fully sort names correctly. I am using
> Windows Xp Home Vers 5.1 build 2600.xpsp_sp2_rtm.040803-2158
> I have a directory with 5248 files and 179 directories. Among these, if
> sort
> by name, I get the ordering
> ..
> SHOG_B8N.ZIP
> SHOG_B9L.ZIP
> SHOG_B60.ZIP
> ..
>
> Testing this with 2 other 3rd party directory utilities (including one
> commercial product I authored) shows no problem.
>
> I also have a problem that the sort order anyway seem to by EBCDIC rather
> than ASCII, so that ABC comes before 0123 etc.. I guess the latter is some
> configuration problem (All my regional setting are correct)
>
 
Great response! I had not imagined this! Implemented and fixed. I had also
reported the apparent EBCDIC >ASCII before, but no solution, but that was
the same problem. This general probelm has been driving me nits. I also did
not know about TweakUI, so now have that.
"Intuitive sorting" Mmm.. I'm an engineer: Give me whatever the literal
"correct" method is every time!
--
Jeff Rollason - CEO
AI Factory Ltd


"Ayush" <"ayushmaan.j[aatt]gmail.com" wrote:

> [Jeff Rollason] wrote-:
> > Surprising as it may seem, the version of Windows Explorer I have seems to
> > have a fundamental bug. It does not fully sort names correctly. I am using
> > Windows Xp Home Vers 5.1 build 2600.xpsp_sp2_rtm.040803-2158
> > I have a directory with 5248 files and 179 directories. Among these, if sort
> > by name, I get the ordering
> > ..
> > SHOG_B8N.ZIP
> > SHOG_B9L.ZIP
> > SHOG_B60.ZIP
> > ..
> >
> > Testing this with 2 other 3rd party directory utilities (including one
> > commercial product I authored) shows no problem.

>
> That is not a bug, it is XP's intuitive filename sorting*. The order is 8,9,60.
> You can turn it off if you want -
> TweakUI > Explorer > Uncheck "Use intuitive filename sorting"
> OR
> Start > Run > Regedit >
> HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
> Create new BINARY value: NoStrCmpLogical and set data to : "01 00 00 00"
>
>
>
> * From TweakUI:
> If you check this box, Explorer will sort so that, e.g. "File 5" comes before
> "File 10" because 5 comes before 10. If you uncheck this box, then explorer
> will use literal sorting, in which case "File 10" will come before "File 5" because
> 1 comes before 5.
>
> Good Luck, Ayush.
> --
> XP-Tips [Create a keyboard shortcut to open a folder] :
> http://www.microsoft.com/windowsxp/using/setup/tips/foldershortcut.mspx
>
 
[Jeff Rollason] wrote-:
> Great response! I had not imagined this! Implemented and fixed. I had also
> reported the apparent EBCDIC >ASCII before, but no solution, but that was
> the same problem. This general probelm has been driving me nits. I also did
> not know about TweakUI, so now have that.
> "Intuitive sorting" Mmm.. I'm an engineer: Give me whatever the literal
> "correct" method is every time!


You are welcome Jeff !


Good Luck, Ayush.
--
XP-Tips [Set up XP so that only authorized people can use it] :
http://www.microsoft.com/windowsxp/using/setup/tips/soleuser.mspx
 
Correcting Windows XP Sort Order
http://www.kellys-korner-xp.com/xp_s.htm#so

You can modify this behavior by modifying the following regsitry value:

Key:
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\Currentversion\Policies\Explorer.

Value Name: NoStrCmpLogical
Value Type: REG_DWORD
Value Data:
NoStrCmpLogical = 0 (default behavior in Windows XP)
NoStrCmpLogical = 1 (win2k behavior)

The machine needs to be rebooted for these changes to be effective. This
registry setting is available in Windows XP Service Pack 1.


--

All the Best,
Kelly (MS-MVP/DTS&XP)

Taskbar Repair Tool Plus!
http://www.kellys-korner-xp.com/taskbarplus!.htm


"Jeff Rollason" <Jeff Rollason@discussions.microsoft.com> wrote in message
news:14FEA466-A770-48C3-925E-75FF2A2224C0@microsoft.com...
>
> Surprising as it may seem, the version of Windows Explorer I have seems to
> have a fundamental bug. It does not fully sort names correctly. I am using
> Windows Xp Home Vers 5.1 build 2600.xpsp_sp2_rtm.040803-2158
> I have a directory with 5248 files and 179 directories. Among these, if
> sort
> by name, I get the ordering
> ..
> SHOG_B8N.ZIP
> SHOG_B9L.ZIP
> SHOG_B60.ZIP
> ..
>
> Testing this with 2 other 3rd party directory utilities (including one
> commercial product I authored) shows no problem.
>
> I also have a problem that the sort order anyway seem to by EBCDIC rather
> than ASCII, so that ABC comes before 0123 etc.. I guess the latter is some
> configuration problem (All my regional setting are correct)
>
 
Back
Top