Sort array using another array
<p>I have an array of products and i want to sort them with another array.</p>

<pre><code>$products = array(
  0 =&gt; 'Pro 1',
  1 =&gt; 'Pro 2',
  2 =&gt; 'Pro 3'
);

$sort = array(1,2,0);

array_multisort($products, $sort);
</code></pre>

<p>Array <strong>should</strong> now be ...</p>

<pre><code>$products = array(
  0 =&gt; 'Pro 2',
  1 =&gt; 'Pro 3',
  2 =&gt; 'Pro 1'
);
</code></pre>

<p>I don't seem to be using array_multisort correctly. Ive tried different ways for 2 hours now...</p>
