Sorting points by order of CCW