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.