sorting the chat messages by sentDate each time, hopefully this is not too processing intensive