Sort segments on course page based on order value