Sort points