{"id":59679,"date":"2023-07-24T14:56:54","date_gmt":"2023-07-24T09:26:54","guid":{"rendered":"http:\/\/198.58.113.91\/blog\/?p=59679"},"modified":"2023-07-24T15:06:15","modified_gmt":"2023-07-24T09:36:15","slug":"change-sort-order-files-name-contain-numerals","status":"publish","type":"post","link":"https:\/\/www.winhelponline.com\/blog\/change-sort-order-files-name-contain-numerals\/","title":{"rendered":"Change the sort order for files and folders whose names contain numerals"},"content":{"rendered":"<div class=\"qt\">\nThis article was previously published under Q319827 at Microsoft Support site. \u00a9 Microsoft.<\/p>\n<p>Original Title: The sort order for files and folders whose names contain numerals is different in Windows Vista, Windows XP, and Windows Server 2003 than it is in Windows 2000.\n<\/p><\/div>\n<p><em>Information in this article also applies to Windows 10 and 11.<\/em><!--more--><\/p>\n<h2>Summary<\/h2>\n<p>This article discusses the sort order that is used by Windows Vista, Windows XP, and Windows Server 2003 for files and folders whose names contain numerals. This article also contains information about how the newer sort order differs from the sort order in Windows 2000, and describes how you can modify sort order behavior in Windows Vista, Windows XP, and Windows Server 2003.<\/p>\n<p>The sort order that is used by Windows Vista, Windows XP, and Windows Server 2003 for files and folders whose names contain numerals differs from the sort order that is used by Windows 2000. The following example shows the difference.<\/p>\n<p><strong>Windows Vista, Windows XP, and Windows Server 2003<\/strong><\/p>\n<ul>\n<li>Ie4_01<\/li>\n<li>Ie4_128<\/li>\n<li>Ie5<\/li>\n<li>Ie6<\/li>\n<li>Ie401sp2<\/li>\n<li>Ie501sp2<\/li>\n<\/ul>\n<p><strong>Windows 2000<\/strong><\/p>\n<ul>\n<li>Ie4_01<\/li>\n<li>Ie4_128<\/li>\n<li>Ie401sp2<\/li>\n<li>Ie5<\/li>\n<li>Ie501sp2<\/li>\n<li>Ie6<\/li>\n<\/ul>\n<p>By default, the newer sort order 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.<\/p>\n<p>In this example, 401 is a numerically higher value than 6. Therefore, the Ie401sp2 folder is listed after the Ie6 folder when you sort the folders by name in ascending order. In the following example, note how the following files, whose names contain numerals, are sorted.<\/p>\n<p><strong>Windows Vista, Windows XP, and Windows Server 2003<\/strong><\/p>\n<ul>\n<li>5.txt<\/li>\n<li>11.txt<\/li>\n<li>88.txt<\/li>\n<\/ul>\n<p><strong>Windows 2000<\/strong><\/p>\n<ul>\n<li>11.txt<\/li>\n<li>5.txt<\/li>\n<li>88.txt<\/li>\n<\/ul>\n<h2>To configure a policy setting to modify sort order in Windows Vista, Windows XP, or Windows Server 2003<\/h2>\n<p>Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base:<\/p>\n<p>322756 How to back up and restore the registry in Windows<\/p>\n<p>You can configure a policy setting to use either the newer sort order or the sort order that is used in Windows 2000. The policy setting is stored in the following registry entries:<\/p>\n<pre>HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\Currentversion\\Policies\\Explorer\\NoStrCmpLogical<\/pre>\n<pre>HKEY_CURRENT_USER\\SOFTWARE\\Microsoft\\Windows\\Currentversion\\Policies\\Explorer\\NoStrCmpLogical<\/pre>\n<p>To obtain this functionality in Windows XP, you must install the latest service pack for Windows XP. This functionality was first available in Windows XP Service Pack 1 (SP1). For more information about how to obtain the latest service pack for Windows XP, click the following article number to view the article in the Microsoft Knowledge Base:<\/p>\n<p>322389 How to obtain the latest Windows XP service pack<\/p>\n<p>After you install Windows XP Service Pack 1 or a later service pack, create the NoStrCmpLogical registry entry, and configure the policy. To do this, follow these steps:<\/p>\n<ol>\n<li>Click Start, click Run, type regedit, and then click OK.<\/li>\n<li>Use one of the following methods, as appropriate for your situation:\n<ul>\n<li>To configure the policy for all users of the computer, locate and then click the following registry key:\n<pre>HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\Currentversion\\Policies\\Explorer<\/pre>\n<\/li>\n<li>To configure the policy for the current user, locate and then click the following registry key:\n<pre>HKEY_CURRENT_USER\\SOFTWARE\\Microsoft\\Windows\\Currentversion\\Policies\\Explorer<\/pre>\n<\/li>\n<\/ul>\n<\/li>\n<li>On the Edit menu, point to New, and then click DWORD Value<\/li>\n<li>Type <strong>NoStrCmpLogical<\/strong>, and then press ENTER.<\/li>\n<li>On the Edit menu, click Modify.<\/li>\n<li>To set the sort order that you want to use for files and folders whose names contain numerals, use one of the following methods, as appropriate for your situation:\n<ul>\n<li>To configure Windows XP or Windows Server 2003 to use the method that Windows 2000 uses for sorting files and folders, in the Value data box, type <strong>1<\/strong>, and the click OK.<\/li>\n<li>To configure the default Windows XP or Windows Server 2003 method for sorting files and folders, in the Value data box, type <strong>0<\/strong>, and then click OK.<\/li>\n<\/ul>\n<\/li>\n<p style=\"padding-left: 40px;\"><strong>Note<\/strong> When the<br \/>\n<strong>NoStrCmpLogical<\/strong><br \/>\nvalue does not exist or when it is set to 0 (zero), the default Windows XP sort order is used.<\/p>\n<li>Exit Registry Editor, and then restart the computer.<\/li>\n<\/ol>\n<p>&#8212; End of the Microsoft article &#8212;<\/p>\n<p>Editor&#8217;s note: As said earlier, information in this article and the registry setting <strong>NoStrCmpLogical<\/strong> apply to Windows 10\/11, as well. You may have to log off and log back in for the change to take effect.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This article was previously published under Q319827 at Microsoft Support site. \u00a9 Microsoft. Original Title: The sort order for files and folders whose names contain numerals is different in Windows Vista, Windows XP, and Windows Server 2003 than it is in Windows 2000. Information in this article also applies to Windows 10 and 11.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[7],"tags":[441],"class_list":["post-59679","post","type-post","status-publish","format-standard","hentry","category-windows","tag-registry"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":800,"url":"https:\/\/www.winhelponline.com\/blog\/fix-cannot-view-chm-files-network-xp-2003-vista\/","url_meta":{"origin":59679,"position":0},"title":"Fix: Cannot View CHM Files from a Network Drive in Windows Vista","author":"Ramesh","date":"December 23, 2008","format":false,"excerpt":"When you open a .CHM file over a network drive in a Windows XP\/2003\/Vista computer, the right pane may show the following message instead of displaying the topic\/contents. Navigation to the webpage was canceled This is perfectly normal, as Microsoft Security Updates 896358 & 840315 block display of CHM file\u2026","rel":"","context":"In &quot;Windows Vista&quot;","block_context":{"text":"Windows Vista","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-vista\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":380,"url":"https:\/\/www.winhelponline.com\/blog\/taskbar-displays-full-path-of-open-folders-instead-of-the-actual-folder-name\/","url_meta":{"origin":59679,"position":1},"title":"Taskbar displays full path of open folders instead of the actual folder name","author":"Ramesh","date":"July 24, 2008","format":false,"excerpt":"When you open a folder window, Taskbar may display the full path of the folder instead of just showing the folder name. So, if you have multiple folder windows open, you may have to click around every window before you get to the right one.To display only the name of\u2026","rel":"","context":"In &quot;Windows Vista&quot;","block_context":{"text":"Windows Vista","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-vista\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/archived\/vista-icon.gif?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":4921,"url":"https:\/\/www.winhelponline.com\/blog\/reorder-library-included-folders-windows\/","url_meta":{"origin":59679,"position":2},"title":"How to reorder folder groups in a library in Windows?","author":"Ramesh","date":"December 24, 2016","format":false,"excerpt":"Libraries were first introduced in Windows 7 and the feature has been carried forward to Windows 8 and Windows 10. Libraries provide you a consolidated or aggregated view of related files in one place. For example, you can have .mp3 files in multiple folders on your hard disk. By adding\u2026","rel":"","context":"In &quot;Windows 10&quot;","block_context":{"text":"Windows 10","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-10\/"},"img":{"alt_text":"rearrange folders inside a library","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/12\/arrange-library-folders-1.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/12\/arrange-library-folders-1.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/12\/arrange-library-folders-1.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":1121,"url":"https:\/\/www.winhelponline.com\/blog\/reset-folder-views-bags-windows\/","url_meta":{"origin":59679,"position":3},"title":"How to Reset Folder View Settings in Windows 10\/11 and Earlier","author":"Ramesh","date":"February 28, 2011","format":false,"excerpt":"Folder view settings include column preferences, view mode (icon or thumbnail), grouping, sorting order, window size, etc. Sometimes Windows may forget your folder view settings due to corruption or if the 5000 folders limit has been reached. For instance, Windows may keep resetting the view back to \"List\" even though\u2026","rel":"","context":"In &quot;Windows&quot;","block_context":{"text":"Windows","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/"},"img":{"alt_text":"folder view bags","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2011\/02\/fviews.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2011\/02\/fviews.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2011\/02\/fviews.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":785,"url":"https:\/\/www.winhelponline.com\/blog\/restore-registry-hives-system-restore-snapshot-xp\/","url_meta":{"origin":59679,"position":4},"title":"How to Restore the Registry Hives from a System Restore Snapshot in Windows XP","author":"Ramesh","date":"November 27, 2008","format":false,"excerpt":"This article describes how to restore the registry hives from a recent System Restore snapshot in Windows XP, in the event of registry corruption that prevents your Windows XP computer from starting. If the registry hives become corrupted, the following errors are displayed when starting up. Windows XP could not\u2026","rel":"","context":"In &quot;Windows XP&quot;","block_context":{"text":"Windows XP","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-xp\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/archived\/xp-icon.gif?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":959,"url":"https:\/\/www.winhelponline.com\/blog\/restore-bkf-file-ntbackup-windows\/","url_meta":{"origin":59679,"position":5},"title":"How to Restore NTBackup BKF Files in Windows 10","author":"Ramesh","date":"November 11, 2009","format":false,"excerpt":"Summary: This post explains how to successfully run NTBackup on Windows 10 and restore data from a .BKF file easily! There are many users who have got backups done using the NTBackup Tool (also known as \"Windows Backup Utility\") in earlier versions of Windows. After upgrading to Windows 10, they\u2026","rel":"","context":"In &quot;Windows 10&quot;","block_context":{"text":"Windows 10","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-10\/"},"img":{"alt_text":"restore bkf ntbackup in windows 10","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2009\/11\/ntbackup-compatiblity-mode.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts\/59679","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/comments?post=59679"}],"version-history":[{"count":0,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts\/59679\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/media?parent=59679"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/categories?post=59679"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/tags?post=59679"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}