Route planning that want to get the route sorting of the must pass points

Route planning with necessary points,Just want to get the route sorting of the must pass points,No need to get the waypoint polyline, how to do it?

Do I understand that you want to use waypoint optimization and get the new order only?