Sort route segments by their sort order