Problems with Mail on Mac

macOS and Mac Apps

Hello all,
Recently I had some problems with my domain and mail provider. I ended up having to delete my main mail account on my Mac and re-enter the information. In doing this my mail client is all out of whack. When I would open up my mail client before my list of mailboxes went inbox, gwocher, all my iMap folders for my gwocher account, gmail and then a couple of other accounts I have. Now for some reason gwocher is the third mailbox in the list and my iMap folders for that account are way at the bottom of the mailbox list. They show up after trash, junk and some others. How can I get my iMap folders to show up under the gwocher account in the mailbox list rather than at the end?

Greg Wocher