mails sort bug