title: arrange multidimensional array by 1 column
body: <p>I have 3 arrays containing 3 pieces of info. Probably easier to show you, here:</p>
  
  <pre><code>    $dataPoints = array(
      array('1' =&gt; '33','2' =&gt; 'dave','3' =&gt; '367'),
      array('1' =&gt; '168','2' =&gt; 'susan','3' =&gt; '56788'),
      array('1' =&gt; '99','2' =&gt; 'tim','3' =&gt; '6')
  
  foreach ($dataPoints as $key =&gt; $row) {
      $x[$key]  = $row['1'];
      $y[$key] = $row['2'];
      $z[$key] = $row['3'];   
  }
  
  $aaa = array_multisort($x, SORT_DESC, $y, SORT_ASC, $z, $dataPoints);
  
  
  print_r($aaa);
  </code></pre>
  
  <p>I am trying to sort the lowest '3' (3rd column) value, then output all 3 answers for that array.</p>
  
  <p>So, '6' is the lowest on the 3rd column. Then output '99', 'tim' &amp; '6'.</p>
  
  <p>What am I doing wrong?</p>