Invert the sorting to work right.