Moving the reverse of the miners (sort) to the sort function.
Keeping the order in one location rather than split into two