Refactored sort_points(point_array)