geom: segment sorting fixed