reversing sorting to be ascending