Get messages in ascending order.

This will help deal with duplicates.