Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 help and support Forum Windows 8 Forum Vista Tutorials

Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Vista Forums > Tutorials

Vista - Sort Order - Numbers in File and Folder Names


Comment
 

Sort Order - Numbers in File and Folder Names

How to Change the Sort Order for Numbers in File and Folder Names in Vista
Published by Brink
02-18-2008
Sort Order - Numbers in File and Folder Names

How to Change the Sort Order for Numbers in File and Folder Names in Vista

information   Information
This will show you how to change the default sort order in Windows Explorer for files and folders that contain numbers in their name so that they will be sorted by the number instead of the number's numeric value.

For more information, see: Microsoft Help and Support: KB319827
Note   Note
By default, the sort order in Vista 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 the example below, 401 is a numerically higher value than 6. Therefore, the Ie401sp2.txt file is listed after the Ie6.txt file when you the files are sorted by name in ascending order. In the example below, note how the following files, whose names contain numerals, are sorted.

EXAMPLE: Default Sort Order for Numbers in File and Folder Names
NOTE: You will just need to see which sort oder you like better to see if you wish to modify it or not.
default.jpg
EXAMPLE: Modified Sort Order for Numbers in File and Folder Names
NOTE: You will just need to see which sort oder you like better to see if you wish to modify it or not.
modified.jpg



METHOD ONE

To Change Sort Order with a Download
1. To Modifiy Sort Order for All Users
A) Click on the download button to download the file below.
Modify_All_Users_Sort_Order.reg

B) Go to step 5.
2. To Restore Default Sort Order for All Users
A) Click on the download button to download the file below.
Default_All_Users_Sort_Order.reg

B) Go to step 5.
3. To Modify Sort Order for Current User Only
A) Click on the download button to download the file below.
Modify_Current_User_Sort_Order.reg

B) Go to step 5.
4. To Restore Default Sort Order for Current User Only
A) Click on the download button to download the file below.
Default_Current_User_Sort_Order.reg

5. Click on Save, and save the .reg file to the Desktop.

6. Right click on the downloaded .reg file and click on Merge.

7. Click on Run, Continue (UAC), Yes, and then OK when prompted.

8. Log off and log on, or restart the computer to apply the changes.

9. When done, you can delete the downloaded .reg file if you like.



METHOD TWO

To Manually Change Sort Order
1. Open the Start Menu.

2. In the white line (Start Search) area, type regedit and press Enter.

3. Click on Continue in the UAC prompt.


OPTION ONE:
4. To Modify the Sort Order for All Users
A) In regedit, go to: (See screenshot below)
NOTE: If you do not have Explorer, then right click on Polices and click on New and Key, then type Explorer and press Enter.

Code:
 
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer
B) In the right pane, right click on a empty area and click New and DWORD (32-bit) Value.
hklm_reg1.jpg
C) Type NoStrCmpLogical and press Enter. (See screenshot below)

D) Right click on NoStrCmpLogical and click on Modify.
hklm_reg2.jpg
E) Type 1 and click on OK. (See screenshot below)
Name:  Modify.jpg
Views: 10114
Size:  31.8 KB
F) The registry will now look like this. (See screenshot below)
hklm_reg3.jpg
5. To Restore the Default Sort Order for All Users
A) In the right pane, right click on NoStrCmpLogical and click on Delete. (See screenshot above.

B) Click on Yes to confirm deletion.
6. Log off and log on, or restart the computer to apply the changes. Your Done.
OPTION TWO:
7. To Modify the Sort Order for Current User Only
A) In regedit, go to: (See screenshot below)
NOTE: If you do not have Explorer, then right click on Polices and click on New and Key, then type Explorer and press Enter.

Code:
 
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
B) In the right pane, right click on a empty area and click New and DWORD (32-bit) Value.
hkcu_reg1.jpg
C) Type NoStrCmpLogical and press Enter. (See screenshot below)

D) Right click on NoStrCmpLogical and click Modify.
hkcu_reg2.jpg
E) Type 1 and click on OK. (See screenshot below)
Name:  Modify.jpg
Views: 10114
Size:  31.8 KB
F) The registry will now look like this. (See screenshot below)
hkcu_reg3.jpg
8. To Restore the Default Sort Order for Current User Only
A) In the right pane, right click on NoStrCmpLogical and click on Delete. (See screenshot above)

B) Click on Yes to confirm deletion.
9. Log off and log on, or restart the computer to apply the changes.
That's it,
Shawn






Published by
Brink's Avatar
Administrator

Join Date: Apr 2007
Location: Texas, USA
Posts: 29,534
Brink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond repute
Brink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond repute

Tutorial Tools

Applies to
All Vista Versions
64 Bit & 32 Bit

Comment

Sort Order - Numbers in File and Folder Names problems?



Tutorial Tools


Similar topics to: Sort Order - Numbers in File and Folder Names
Tutorial Category
how to change sort order of folders in Storage Folder Live Mail
File names in non-sequential order .NET General
Sort an array of numbers in Powershell PowerShell
file names and folder names have been changed into some values automatically Vista file management
file and folder names are gone Vista file management


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50