Add support for sorting search results by reverse date

This obviously only applies to mail search, but now lets you search
in a way to get the oldest possible hit first.

Request from Tom Lane