Submit 3

implement comparable
Sorted the messageList