macOS Mail folders are often not sorted in alphabetical order by default, especially when new mailbox folders are added to an existing mailbox. Although the mailbox folders are in A to Z order at the mail web access, e.g. iCloud.com, they are not on your macOS Mail app. If you are unable to order alphabetically all mailbox folders on your Mac, you just need to delete the corresponding mailbox library. Not a single SSH shell command is necessary.
Here is how to alphabetize Mac mail folders automatically again:
- Close the macOS Mail app, if it is currently open.
- Launch Finder app. While pressing the option key on your keyboard, click onto the ‘Go‘ menu and then select ‘Library‘.
- Scroll down till you find the ‘Mail‘ folder and open the folder.
- Within the Mail folder, you will find one or more subfolders named like V1 / V2 / V3 …., in my case it is named ‘V6’.
- Trash all ‘Vx’-folders. Note: Do not finally delete them until you are sure you will not need them anymore.
- Launch macOS Mail app. All email accounts will be synced again. This can take a while. After the sync is complete, all of your mailbox folders are shown again in alphabetical order.
Note:
- Mainly iCloud mail accounts are affected by mailbox folders not sorting in alphabetically order. However, this fix works for Gmail, Outlook and any other email accounts, too.
- If you’re using IMAP or Exchange and have all your messages stored on a remote server, you shouldn’t be able to delete those messages through this process. If you have locally stored mailboxes, make sure they’re archived via Time Machine or other backup software!
- The fix was tested succesfully on macOS 10.14 Mojave.
Fix macOS mailbox folders (iCloud, Gmail, Outlook.com,…) not be sorted alphabetically by deleting the Mail library and automatically resyncing all mailbox accounts.
Stay tuned ! 😉
34 Comments
Great. It worked in seconds and I had been trying to sort it for weeks.
Great! Thanks for your feedback! 🙂
Won’t this permanently delete any messages that have been moved to “On My Mac”? I would think that forcing a reindex would make more sense than deleting the mail data and redownloading it from the server (my stored mail contains a mixture of stuff on IMap/Exchange servers and locally stored archives).
that’s exactly what happened to me. All the “cloud” folders were sorted, but the “on my mac” folders were lost. Luckily I had not trashed the old V* file and I recovered everything.
I wonder if there is was to avoid this problem.
Afraid to try this. What do I do if all mail and/or folders disappear?
Oh, if I do this on my MacBook will it also update my iMac? May sound like a dumb question but thought I’d ask.
It finally worked !!! After three attempts as described above, it did not work. However, on the fourth attempt, before relaunching the MAC mail app, I did a “restart”. After the restart, and relaunching MAC mail, all gmail sub labels (folders in Mac Mail) were finally in alpha order! THANK YOU!!
Thanks for your feedback! Great to hear it worked. ?
This did not work. There is no Go prompt and no Library folder. Can’t even start this fix.
It worked like magic on Mac OS Monterey 12.3. Thanks!
Thank you very much!
You’re welcome!
It worked!!. Thanks so much. This has bothered me for years!!!
You’re welcome! 🙂
“How To Fix Mail Folders Not Automatically Be Sorted” So the problem to solve is that Mail is not sorting them automatically in alphabetical order.
I don’t see how this article fixes the problem. Will all new folders be automatically sorted alphabetically after following these instructions?
Yes, they will. My personal experience is that this fix works at least for months. The issue sometimes returns if there are major macOS updates. In my case, my MacBook has not been affected anymore since I have written this blog post.
You CANNOT loose your email – it is stored on the server of your provider.
Delete the whole account and set it up again with password and server credentials.
Nevertheless I have the same sh… on my Macs with sorting since I upgraded to Catalina.
One Mac shows the mailboxes correct and adds new sub mailboxes in order.
The other one just throws everything at the bottom of the list independent of the alphabetical order.
Outlook gets it right.
It is a never ending story with Apple they cannot get their mail program working.
Another nuisance is that the attachments are shown at the VERY VERY end of the mail.
In the header it is almost impossible to recognise that there are attachments.
Apple PLEASE hire someone from Microsoft to show you how a working email client is programmed.
And stop adding elementary school gimmicks to your OS or simply devide your OS into one for adults and professionals and another one for hipsters, instagrammers and kiddies.
Best Bernd
Hi Bernd,
many thanks for your helpful comment!
Cheers,
Gee Are
I agree! What is weird is they are in alphabetical order when I am selecting which folder to move an email to, but when I am navigating folders they are not.
That’s really weird! Is this effect permanently or does it inly occur time-by-time?