order messages by date from the server-side