Ask Leo! by Leo A. Notenboom

How does windows maintain the sort order in my menus?

Search First! Then browse: Categories | Full Archive | By Date | Newsletter

Home » Windows » Windows Configuration

Summary: 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

Helpful? Get new articles weekly by email in my FREE newsletter!

Your Name:
Your Email:


Why Subscribe?

Recent Comments
0 Comments

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






(Email Address will not be published.)

Remember Me?

By popular demand...
my tip jar
Cuppa Joe
Buy Leo a Latte!

(you may use HTML tags for style)

RSS feed Subscribe to the RSS Feed specifically for comments on this article.

Before commenting, please...

  • Read the article at the top of this page. If your comment shows you didn't, it'll be deleted and ignored.

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

  • Don't include personal information in the comment. No email addresses. No phone numbers. No physical addresses.

  • Don't spam. Excessive links to unrelated sites within a comment or across multiple comments will cause all such comments to be removed.

  • Don't ask me to recover lost passwords or hacked accounts. I can't, and 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 ...


Question? Ask Leo!