Use TOLERANCE while sorting the points, this tolerance is independent
of the point matching tolerance asked for by the user.