Helping people with computers... one answer at a time.

Menu sort order is a bit of a Windows mystery. It's easy to set the sort order, but as it changes it's kept in an obscure registry location.

How does windows maintain the sort order in my menus?

The short answer? In the registry, of course.

The Start and Favorites menus typically have what I can best describe as a random order. It's not really related to how things are kept on disk, but rather the order in which things have been added to the menu.

When a Start or Favorite menu (or any sub menu thereof) is displayed you can, of course, right click on it and select "Sort by Name" to get the menu items in alphabetical order. Or you can click-and drag individual items to move them around into the order you want.

So just where does Windows keep the display order?

The first part is actually easy. The order of items in the Start and Favorites menus are kept in a per-user registry key:

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MenuOrder

The problem is that the individual entries are somewhat complex and naturally undocumented. Here's one person's attempt at reverse-engineering, MenuOrder registry values, out at experts-exchange.

Since I haven't tried it I can't recommend it, but apparently deleting the MenuOrder registry key causes Windows to sort alphabetically by default. Windows also seems to continue to try to recreate the key, so deleting it is something you'd need to do each time you log in. Here's a tidbit on that: How can I automatically keep my Windows Start menu sorted? from JSI, Inc.

Remember that if you do end up making changes to your registry, back it up first!

Article C1837 - August 29, 2003

Leo Leo A. Notenboom has been playing with computers since he was required to take a programming class in 1976. An 18 year career as a programmer at Microsoft soon followed. After "retiring" in 2001, Leo started Ask Leo! in 2003 as a place for answers to common computer and technical questions. More about Leo.

Not what you needed?

Post a comment on "How does windows maintain the sort order in my menus?":





Remember Me?

(You may use HTML tags for style)

Before commenting, please...

  • READ THE ARTICLE. A comment that shows you didn't will be deleted and ignored.

  • Comment only on the article. Use the search box at the top of the page if you have a question about something else.

  • NO PERSONAL INFORMATION in the comment. No email addresses. No phone numbers. No physical addresses.

  • Anything that looks the least bit like spam will be deleted. Links to unrelated sites or links that appear to be primarily promotional will be deleted, or the comment will be deleted.

  • Don't ask me to recover lost passwords or hacked accounts. I can't. Those comments will be deleted.

  • I can't respond to every comment. And I can't vouch for the accuracy of others who do.

Please wait. Your comment is being processed ...