Preserve line segment order.