Robert, I have implemented a variation of the routing widget you created and I have run into a small problem when performing a manual sort of the stops. In the widget I have created data can be added one of two ways, 1) from a queried dataset or 2) from an address a user has entered. Everything works with the sort as expected when only stops created from the dataset are available. However, once i add an address and then perform a sort, the address gets left out of the stops feature set, therefore the address is not included in the route. If I add stops via the dataset and address but do not sort them, then the routing works as expected. I feel as though I am missing something simple but I'm having trouble finding it.
Do you have any suggestions of what might be going on or what I should check? If it would help I can send you my widget code, just let me know.