In print it is possible to visualize the line created, totally without logic, and in red what would be the appropriate route.
Page 1 / 1
In this question there is mention of an algorithm to sort points in a clockwise order relative to a central point. It looks like that algorithm could work for this route (although unfortunately it was not suited for the data from the original question).
Thanks for the support.