Route planner/Traveling salesman

What options do I have if I want to create a route based on “visit X Y and Z in an optimized way” that I can then use on my phone?

I was trying to search for that functionality within OSMAnd but quickly got lost in the 3-4 similar looking trip planning methods. The route planning one sounded the most promising but it doesn’t let me reorder the positions I place even if it means taking a longer route.

Not on a phone but one way to do this is use QMapShack with the Brouter integration, I have used it several times to create a route for delivering post to a list of addresses, see: