Hello, thanks for the inquiry.
I tested using the example request from: https://learn.microsoft.com/en-us/bingmaps/rest-services/routes/calculate-a-distance-matrix , and the results look correct.
Please share you request if you still find the index order incorrect.