Windows – Is there a way to fix the sort by name in Windows 10 File Explorer

windowswindows 10windows-explorer

There seems to be a bug in Windows 10 File explorer.

For instance here are four files I created listed how they appear when I have sort by Name ascending selected:

31A.txt
32A.txt
311.txt
321.txt

These are not correctly sorted by name ascending. The proper sort would be:

311.txt
31A.txt
321.txt
32A.txt

This bug appears whenever the filenames start with the same character. In other words, File Explorer will place a file that starts with '1' before one that starts with 'A'.

This only happens in File Explorer and open dialog boxes that I'm aware of. Command line lists the files in the proper order.

Is there a fix for this? Am I off my rocker? Googling is coming up zilch for me. This also seems like a very strange bug, sorting algorithms have been around for ages now.

Best Answer

The fix for this in Windows 7 almost works, but the group policy setting's location changed.

  1. In the start menu, search for "Edit Group Policy" or "gpedit.msc" and press enter.
  2. In the Local Group Policy Editor, navigate to User Configuration / Administrative Templates / Windows Components / File Explorer.
    • In Windows 10 this is in File Explorer, whereas Windows 7 apparently called it Windows Explorer.
  3. Double-click Turn off numerical sorting in File Explorer and select Enabled, then click OK.
Related Question