• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Sort Order - Numbers in File and Folder Names

Brink

Staff member
mvp
Messages
32,201
Location
Oklahoma, USA
Sort Order - Numbers in File and Folder Names How to Change the Sort Order for Numbers in File and Folder Names in Vista
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.
Published by Brink
#1
ByLine
How to Change the Sort Order for Numbers in File and Folder Names in Vista
Synopsis
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.
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
download

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
download

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
download

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
download


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)​
Modify.jpg

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)​
Modify.jpg

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




 
Last edited:

My Computers

System One System Two

  • Show second system?
    Yes
    Operating System
    Windows 10 Pro 64-bit
    Manufacturer/Model
    Custom
    CPU
    Intel i7-8700K 5 GHz
    Motherboard
    ASUS Maximus X Code Z370
    Memory
    16 GB (8GBx2) G.SKILL TridentZ DDR4 3200 MHz
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
    Sound Card
    Integrated
    Monitor(s) Displays
    3 x 27" Asus VE278Q
    Screen Resolution
    1920x1080
    Hard Drives
    250GB Samsung 960 EVO M.2,
    256GB OCZ Vector,
    6TB WD Black WD6001FZWX
    PSU
    Seasonic Prime Titanium 850W
    Case
    Corsair Air 740
    Cooling
    Corsair Hydro H115i
    Mouse
    Logitech MX Master
    Keyboard
    Logitech wireless K800
    Internet Speed
    300 Mb/s Download and 30 Mb/s Upload
    Other Info
    Logitech Z625 speaker system,
    Creative F200 webcam,
    HP Color LaserJet Pro MFP M477fdn,
    Linksys EA9500 router,
    Arris SB6190 cable modem,
    APC SMART-UPS RT 1000 XL,
    Lumia 1520 phone
  • Operating System
    Windows 10 Pro
    Manufacturer/Model
    HP Envy Y0F94AV
    CPU
    i7-7500U @ 2.70 GHz
    Memory
    16 GB DDR4-2133
    Graphics card(s)
    NVIDIA GeForce 940MX
    Sound Card
    Conexant ISST Audio
    Monitor(s) Displays
    17.3" UHD IPS touch
    Screen Resolution
    3480 x 2160
    Hard Drives
    512 GB M.2 SSD

Users Who Are Viewing This Thread (Users: 1, Guests: 0)