geom: segment_tree sorting