sorted the email