General Enable or Disable Numerical Sorting in File Explorer in Windows 11


  • Staff
Numerical_Sorting_banner.png

File Explorer sorts file names in numerical order and not literally by default in Windows 10 and Windows 11.

When numerical sorting is enabled, File Explorer will sort file names by increasing number value (for example, 3 < 22 < 111).

When numerical sorting is disabled, File Explorer will sort file names by each digit in a file name (for example, 111 < 22 < 3).

This tutorial will show you how to enable or disable numerical sorting in File Explorer for all users in Windows 10 and Windows 11.


You must be signed in as an administrator to enable or disable numerical sorting in File Explorer.



Contents

  • Option One: Enable or Disable Numerical Sorting in File Explorer in Local Group Policy Editor
  • Option Two: Enable or Disable Numerical Sorting in File Explorer using REG file


EXAMPLE: Numerical sorting in File Explorer enabled and disabled

numerical_sorting_enabled.png
numerical_sorting_disabled.png





Option One

Enable or Disable Numerical Sorting in File Explorer in Local Group Policy Editor


The Local Group Policy Editor is only available in the Windows 10/11 Pro, Enterprise, and Education editions.

All editions can use Option Two to configure the same policy.


1 Open the Local Group Policy Editor (gpedit.msc).

2 Navigate to the policy location below in the left pane of the Local Group Policy Editor. (see screenshot below)

Computer Configuration > Administrative Templates > Windows Components > File Explorer

numerical_sorting_gpedit-1.png

3 In the right pane of File Explorer in the Local Group Policy Editor, double click/tap on the Turn off numerical sorting in File Explorer policy to edit it. (see screenshot above)

4 Do step 5 (enable) or step 6 (disable) below for what you want.

5 Enable Numerical Sorting in File Explorer for All Users

This is the default setting.


A) Select (dot) Not Configured, click/tap on OK, and go to step 7. (see screenshot below)​

numerical_sorting_gpedit-2.png

6 Disable Numerical Sorting in File Explorer for All Users

This will override Option Two.


A) Select (dot) Enabled, click/tap on OK, and go to step 7. (see screenshot below)​

numerical_sorting_gpedit-3.png

7 Close the Local Group Policy Editor.

8 If File Explorer is open, then either refresh (F5) the window or close and reopen File Explorer (Win+E) to apply.




Option Two

Enable or Disable Numerical Sorting in File Explorer for All Users using REG file


1 Do step 2 (enable) or step 3 (disable) below for what you would like to do.

2 Enable Numerical Sorting in File Explorer for All Users

This is the default setting


A) Click/tap on the Download button below to download the file below, and go to step 4 below.​

Enable_numerical_sorting_in_File_Explorer.reg


(Contents of REG file for reference)
Code:
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]
"NoStrCmpLogical"=-

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer]
"NoStrCmpLogical"=-

3 Disable Numerical Sorting in File Explorer for All Users

A) Click/tap on the Download button below to download the file below, and go to step 4 below.​

Disable_numerical_sorting_in_File_Explorer.reg


(Contents of REG file for reference)
Code:
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer]
"NoStrCmpLogical"=dword:00000001

4 Save the REG file to your desktop.

5 Double click/tap on the downloaded REG file to merge it.

6 When prompted, click/tap on Run, Yes (UAC), Yes, and OK to approve the merge.

7 Either restart the explorer process, sign out and sign in, or restart the computer to apply.

8 You can now delete the downloaded REG file if you like.


That's it,
Shawn Brink


 

Attachments

  • Numerical_Sorting.png
    Numerical_Sorting.png
    1.1 KB · Views: 13
  • Disable_numerical_sorting_in_File_Explorer.reg
    672 bytes · Views: 24
  • Enable_numerical_sorting_in_File_Explorer.reg
    854 bytes · Views: 25
Last edited:

Latest Support Threads

Top Bottom