fix overlapping_rectangles sort