title: Sort by only number column in array
body: <p>Hey im having issues with sorting an array, i chose to use a 2d array a long time ago and im trying to update my site however when i turn the 2d array into a 3d array and try to use array_multisort my values change.</p>
  
  <p>i was using :</p>
  
  <pre><code>array_push($array, $doc[_id], $Fitness);
  //but now want to use this
  array_push($array, $doc[_id], $Fitness,$title);
  </code></pre>
  
  <p>The problem with including the title is that it seems to skew the results later when i sort the array:</p>
  
  <pre><code>array_multisort($array); //sort the results to get highest
  </code></pre>
  
  <p>Is there anyway i can sort the entire array and its contents just by the order of fitness $fitness?</p>
  
  <p>I tried :</p>
  
  <pre><code>array_multisort($results,$Fitness); //sort the results to get highest
  </code></pre>
  
  <p>but had no luck, do i really have to extract all the values like this? As it seems somewhat overly complicated as a solution...:</p>
  
  <pre><code>foreach ($array as $key =&gt; $row) {
      $Fitness[$key] = $row['Fitness'];
  }
  //and then
  array_multisort( $Fitness, SORT_ASC, $array);
  </code></pre>
  
  <p>Any help would be appreciated.</p>