Adds ordering to the points