{"id":102581,"date":"2019-06-11T07:00:00","date_gmt":"2019-06-11T14:00:00","guid":{"rendered":"http:\/\/devblogs.microsoft.com\/oldnewthing\/?p=102581"},"modified":"2019-06-10T19:33:23","modified_gmt":"2019-06-11T02:33:23","slug":"20190611-00","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/oldnewthing\/20190611-00\/?p=102581","title":{"rendered":"What order do the items in the &#8220;New&#8221; menu appear? It looks kind of random."},"content":{"rendered":"<p>When you right-click on an empty space in an Explorer folder and select the <i>New<\/i> menu item, you always start with <i>Folder<\/i> and <i>Shortcut<\/i>, but the rest seems to be a jumbled list of file types.<\/p>\n<table class=\"cp3\" style=\"border: 1px solid black;\" border=\"0\" cellpadding=\"3\">\n<tbody>\n<tr>\n<td>Folder<\/td>\n<\/tr>\n<tr>\n<td>Shortcut<\/td>\n<\/tr>\n<tr>\n<td style=\"font-size: 20%;\">\u00a0<\/td>\n<\/tr>\n<tr>\n<td style=\"font-size: 1px; border-top: solid 1px gray;\">\u00a0<\/td>\n<\/tr>\n<tr>\n<td style=\"font-size: 10%;\">\u00a0<\/td>\n<\/tr>\n<tr>\n<td>Microsoft Access Database<\/td>\n<\/tr>\n<tr>\n<td>Bitmap image<\/td>\n<\/tr>\n<tr>\n<td>Contact<\/td>\n<\/tr>\n<tr>\n<td>Microsoft Word Document<\/td>\n<\/tr>\n<tr>\n<td>Microsoft PowerPoint Presentation<\/td>\n<\/tr>\n<tr>\n<td>Microsoft Publisher Document<\/td>\n<\/tr>\n<tr>\n<td>Rich Text Document<\/td>\n<\/tr>\n<tr>\n<td>Text Document<\/td>\n<\/tr>\n<tr>\n<td>Microsoft Excel Worksheet<\/td>\n<\/tr>\n<tr>\n<td>Compressed (zipped) folder<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>The list looks jumbled, but it&#8217;s a very specific kind of jumbled.<\/p>\n<p>The items in the <i>New<\/i> menu are discovered by <a href=\"https:\/\/docs.microsoft.com\/en-us\/windows\/desktop\/shell\/context#extending-the-new-submenu\"> looking for <code>Shell\u00adNew<\/code> subkeys<\/a> in <code>HKEY_<\/code><code>CLASSES_<\/code><code>ROOT<\/code>. And a side effect of the way Explorer walks through the registry and collects the results is that they end up sorted alphabetically by <i>file extension<\/i>.<\/p>\n<table class=\"cp3\" style=\"border: 1px solid black;\" border=\"0\" cellpadding=\"3\">\n<tbody>\n<tr>\n<td>&nbsp;<\/td>\n<td>Folder<\/td>\n<\/tr>\n<tr>\n<td>&nbsp;<\/td>\n<td>Shortcut<\/td>\n<\/tr>\n<tr>\n<td style=\"font-size: 20%;\" colspan=\"2\">\u00a0<\/td>\n<\/tr>\n<tr>\n<td style=\"font-size: 1px; border-top: solid 1px gray;\" colspan=\"2\">\u00a0<\/td>\n<\/tr>\n<tr>\n<td style=\"font-size: 10%;\" colspan=\"2\">\u00a0<\/td>\n<\/tr>\n<tr>\n<td>.accdb<\/td>\n<td>Microsoft Access Database<\/td>\n<\/tr>\n<tr>\n<td>.bmp<\/td>\n<td>Bitmap image<\/td>\n<\/tr>\n<tr>\n<td>.contact<\/td>\n<td>Contact<\/td>\n<\/tr>\n<tr>\n<td>.docx<\/td>\n<td>Microsoft Word Document<\/td>\n<\/tr>\n<tr>\n<td>.pptx<\/td>\n<td>Microsoft PowerPoint Presentation<\/td>\n<\/tr>\n<tr>\n<td>.pub<\/td>\n<td>Microsoft Publisher Document<\/td>\n<\/tr>\n<tr>\n<td>.rtf<\/td>\n<td>Rich Text Document<\/td>\n<\/tr>\n<tr>\n<td>.txt<\/td>\n<td>Text Document<\/td>\n<\/tr>\n<tr>\n<td>.xlsx<\/td>\n<td>Microsoft Excel Worksheet<\/td>\n<\/tr>\n<tr>\n<td>.zip<\/td>\n<td>Compressed (zipped) folder<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>This behavior is not contractual. It&#8217;s just an artifact of the implementation. Maybe it&#8217;ll change someday.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>It&#8217;s alphabetical order, but not in the obvious way.<\/p>\n","protected":false},"author":1069,"featured_media":111744,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[104],"class_list":["post-102581","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-oldnewthing","tag-tipssupport"],"acf":[],"blog_post_summary":"<p>It&#8217;s alphabetical order, but not in the obvious way.<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/102581","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/users\/1069"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/comments?post=102581"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/102581\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/media\/111744"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/media?parent=102581"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/categories?post=102581"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/tags?post=102581"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}