sort the mails by date