Fix the sort order

Oops, the last commit inadvertently reversed the sort order.