Fix MailInbox references in ui files (changed to Mailbox) to get keyhotee compiling after last commit. Partial implementation of code to allow sorting of mailbox (currently looks like this could break inbox mailbox database if you delete items in the mailbox, so don't do that right now).