title: Rearrange a list based on given order in c#
body: <p>I have a list as follows:</p>
  
  <pre><code>{CT, MA, VA, NY}
  </code></pre>
  
  <p>I submit this list to a function and I get the optimum waypoint order list</p>
  
  <pre><code>{2,0,1,3}
  </code></pre>
  
  <p>Now I have to rearrange the list as per the order that is newly provided. i.e. after rearranging, the list should look like:</p>
  
  <pre><code>{VA, CT, MA, NY}
  </code></pre>
  
  <p>What is the optimum way to do it? Using linq is there a way?</p>