title: Sort an array based on another array of integers
body: <p>Let's say I have an array: <code>[0,3,4,2,5,1]</code>.</p>
  
  <p>What I want to do is sort an array such as:</p>
  
  <pre><code>["one", "two", "three", "four", "five", "six"]
  </code></pre>
  
  <p>So that the order corresponds to the first array.</p>
  
  <p>This would be the output:</p>
  
  <pre><code>["one", "four", "five", "three", "six", "two"]
  </code></pre>
  
  <p>Is there an easy way to accomplish this?</p>