Adds ordering of the messages by datetime