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).
This function performs a quick sort of the x array while transforming the y array to preserve the coordinates.