Sort results in date order.

Closes issue #17