Get messages in ascending order.

This will help deal with duplicates.
Merge pull request #1 from ralphbean/master

Get messages in ascending order.