"sorts email types and ranks correctly" does not describe behavior.  What does it mean to be "correct"?  You have to describe _that_.