added reverse chronological sort for messages