Sorting an array according to another array's sorted index
<p>I have two arrays. I should do a normal sort on one (descending or ascending) and sort the other according to how the first array is sorted. This is because each element in the first array has a relationship with the same index element on the second array, and I must keep this relationship true. For example:</p>

<pre><code>sortThis=[3,1,2];
sortAccording=["With 3","With 1","With 2];
</code></pre>

<p>I couldn't find any way to take the index changes from JavaScript's <code>sort</code> function.</p>
