Why are file names sorted with numerics handled as numbers in WIndows 11.

Ray Oberhardt 0 Reputation points
2025-12-17T02:12:14.9666667+00:00

Sorry to sound ignorant but to be short and sweet, what moron would want file names sorted by numerical value at the first set of digits, when leading zeros clearly indicate straight alpha sorting is required anyway. It seems as if IQ is descending further in the IT world.

Microsoft Teams | Microsoft Teams for business | Files | Other
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Q&A Assist
    2025-12-17T02:12:23.05+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    In Windows 11, file names can be sorted numerically based on the configuration of the operating system. This behavior is controlled by a policy setting called NoStrCmpLogical. When this setting is enabled, File Explorer sorts file names literally, treating each digit as a separate character, which can lead to results like sorting 111 < 22 < 3. Conversely, if the policy is disabled, it sorts file names by increasing numerical value, which would result in 3 < 22 < 111.

    This sorting method can be beneficial in certain contexts where users prefer numerical sorting for clarity, especially when dealing with version numbers or other numerical identifiers in file names. However, it can also lead to confusion when leading zeros are involved, as they may suggest a different sorting approach is needed.

    Ultimately, the choice of sorting method can be adjusted based on user preference and specific use cases, allowing for flexibility in how file names are presented in File Explorer.

    0 comments No comments

  2. Viego An 6,145 Reputation points Microsoft External Staff Moderator
    2025-12-17T03:06:54.2366667+00:00

    Dear @Ray Oberhardt,

    Thank you for reaching out to Microsoft Q&A forum. I am happy to assist you.

    I’m sorry for the inconvenience caused by numerical (natural) sorting in File Explorer, you can turn off numerical sorting as follows:

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

    1. Press Win + R, type gpedit.msc, and press Enter.
    2. Navigate to:
    3. Computer Configuration > Administrative Templates > Windows Components User's image
    4. Scroll down to find File Explorer. You will see "Turn off numerical sorting in File Explorer" on the right window. User's image
    5. Double‑click Turn off numerical sorting in File Explorer. Set to Enabled > Apply > OK. User's image
    6. Restart File Explorer (or restart the PC) and check the folder again.

    For reference, please visit this link: File Explorer in Windows 11 sort order doesn't make any sense. - Microsoft Q&A

    I hope this information is helpful. If you need any further assistance, please feel free to reach out. We are here to help. Thank you very much for your understanding and cooperation.


    If you found the answer useful, please click "Accepted Answer" and kindly give it an upvote.

    If you have any follow-up questions, feel free to click "Comment" to continue the discussion.

    Note: To receive email notifications related to this thread, please follow the steps in our documentation to enable email alerts.


  3. Ray Oberhardt 0 Reputation points
    2025-12-19T01:23:32.75+00:00

    Thank you moderator. I'm not blaming you. I would hate your job.I have tried that and every other suggestion revealed by google search. It doesn't work. It's like getting Windows 11 to talk to a Linux computer other than ping. What was easy in earlier windows versions now becomes impossible. Great job Windows 11 development team. Even google admits these things have become impossible in Windows 11.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.