I have a list as follows:
{CT, MA, VA, NY}
I submit this list to a function and I get the optimum waypoint order list
{2,0,1,3}
You could try the following:
var list = new List{"CT", "MA", "VA", "NY"}; var order = new List{2, 0, 1, 3}; var result = order.Select(i => list[i]).ToList();