Microsoft KB Archive/319827

= The sort order for files and folders whose names contain numerals is different in Windows Vista, Windows XP, and Windows Server 2003 than it is in Windows 2000 =

Article ID: 319827

Article Last Modified on 8/28/2007

-

APPLIES TO


 * Windows Vista Home Basic
 * Windows Vista Home Premium
 * Windows Vista Ultimate
 * Windows Vista Business
 * Windows Vista Enterprise
 * Windows Vista Starter
 * Microsoft Windows Server 2003, Standard Edition (32-bit x86)
 * Microsoft Windows Server 2003, Enterprise Edition (32-bit x86)
 * Microsoft Windows Server 2003, Datacenter Edition (32-bit x86)
 * Microsoft Windows Server 2003, Web Edition
 * Microsoft Windows XP Home Edition
 * Microsoft Windows XP Professional

-



This article was previously published under Q319827



Important This article contains information about how to modify the registry. Make sure that you back up the registry before you modify it. Make sure that you know how to restore the registry if a problem occurs. For more information about how to back up, restore, and modify the registry, click the following article number to view the article in the Microsoft Knowledge Base:

256986 Description of the Microsoft Windows registry



SUMMARY
This article discusses the sort order that is used by Windows Vista, Windows XP, and Windows Server 2003 for files and folders whose names contain numerals. This article also contains information about how the newer sort order differs from the sort order in Windows 2000, and describes how you can modify sort order behavior in Windows Vista, Windows XP, and Windows Server 2003.



MORE INFORMATION
The sort order that is used by Windows Vista, Windows XP, and Windows Server 2003 for files and folders whose names contain numerals differs from the sort order that is used by Windows 2000. The following example shows the difference.

Windows Vista, Windows XP, and Windows Server 2003

Ie4_01

Ie4_128

Ie5

Ie6

Ie401sp2

Ie501sp2

Windows 2000

Ie4_01

Ie4_128

Ie401sp2

Ie5

Ie501sp2

Ie6

By default, the newer sort order considers strings in file and folder names as numeric content, not text. Numerals in folder and file names are sorted according to their numeric value.

In this example, 401 is a numerically higher value than 6. Therefore, the Ie401sp2 folder is listed after the Ie6 folder when you sort the folders by name in ascending order. In the following example, note how the following files, whose names contain numerals, are sorted.

Windows Vista, Windows XP, and Windows Server 2003

5.txt

11.txt

88.txt

Windows 2000

11.txt

5.txt

88.txt

To configure a policy setting to modify sort order in Windows Vista, Windows XP, or Windows Server 2003
Warning Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method. These problems might require that you reinstall the operating system. Microsoft cannot guarantee that these problems can be solved. Modify the registry at your own risk.

You can configure a policy setting to use either the newer sort order or the sort order that is used in Windows 2000. The policy setting is stored in the following registry entries:

To obtain this functionality in Windows XP, you must install the latest service pack for Windows XP. This functionality was first available in Windows XP Service Pack 1 (SP1). For more information about how to obtain the latest service pack for Windows XP, click the following article number to view the article in the Microsoft Knowledge Base:

322389 How to obtain the latest Windows XP service pack

After you install Windows XP Service Pack 1 or a later service pack, create the NoStrCmpLogical registry entry, and configure the policy. To do this, follow these steps:  Click Start, click Run, type regedit, and then click OK. Use one of the following methods, as appropriate for your situation:  To configure the policy for all users of the computer, locate and then click the following registry key:

 To configure the policy for the current user, locate and then click the following registry key:

  On the Edit menu, point to New, and then click DWORD Value</li> Type NoStrCmpLogical, and then press ENTER.</li> On the Edit menu, click Modify.</li> To set the sort order that you want to use for files and folders whose names contain numerals, use one of the following methods, as appropriate for your situation:  To configure Windows XP or Windows Server 2003 to use the method that Windows 2000 uses for sorting files and folders, in the Value data box, type 1, and the click OK .</li> To configure the default Windows XP or Windows Server 2003 method for sorting files and folders, in the Value data box, type 0, and then click OK.

Note When the   value does not exist or when it is set to 0 (zero), the default Windows XP sort order is used.</li></ul> </li> Exit Registry Editor, and then restart the computer.</li></ol>

Keywords: kbbug kbfix kbqfe kbwinxpsp1fix kbhotfixserver KB319827

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.