Sort messages by sent time.