title: Use array_multisort() with custom function
body: <p>I have the following array and I would like to sort it according another array and not <code>DESC</code> or <code>ASC</code></p>
  
  <pre><code>$array = array(
      'note' =&gt; array('test', 'test1', 'test2', 'test3', 'test4'),
      'year' =&gt; array('2011','2010', '2012', '2009', '2010'),
      'type' =&gt; array('journal', 'conference', 'conference', 'conference','conference'),
  );
  </code></pre>
  
  <p>Is it possible to do it with a custom function inside an array_multisort()?</p>
  
  <p>For example:</p>
  
  <pre><code>array_multisort($array['type'], $array['year'], custom_function, $array['note']);
  </code></pre>
  
  <p>instead of:</p>
  
  <pre><code>array_multisort($array['type'], $array['year'], SORT_ASC, $array['note']);
  </code></pre>