in reply to Sorting problem
Smells like the Travelling Salesman, see some discussion here Travelling problem