Compares points based on x value. Y value is ignored.
Return values:
arrayOfPoints.sort(Points.compareByX); Copy
arrayOfPoints.sort(Points.compareByX);
Compares points based on x value. Y value is ignored.
Return values:
Example: Sorting by x