Paraphrase: The idea is to sort the data on the x or y coordinates of one of the corners of the rectangles .
The idea is to sort the data on the x or y coordinate of one of the corners of the rectangles .