Modifying Accounts in Mac MAIL - how to get them in alphabetical order?


I have lots of mail accounts, over 30 of them. When I want to send a message it is a pain to select the correct email address for the From field. Is there a way I can sort them in alphabetical order? Using Terminal perhaps?

I have the same problem with the SMTP server list.