This function performs a quick sort of the x array while transforming the y array to preserve the coordinates.
object that contains property x (Array) and y (Array).
the points, ascending by x.
This function performs a quick sort of the x array while transforming the y array to preserve the coordinates.