Figure 3: To the left of x_c, segment1 precedes segment2 in the sort order. To the right of x_c, segment 2 precedes segment1.