My objective is to sort Y first (increasing, from 0 to 3), then sort the X according to the sorted Y. Note that X and Y
Y
X