Windows Explorer sort bug

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.
 
G

Guest

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)
 
N

Not Me

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.
 
G

Guest

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 said:
[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.
 
A

Ayush

[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.
 
K

Kelly

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top