Add sorting to points.