title: Unsort in array
body: <p>Good day.</p>
  
  <p>I would be like get 3 keys from $arr where value $arN[0] will be more than other...</p>
  
  <p>Code:</p>
  
  <pre><code>$ar1=array(201,281);
  $ar2=array(1252760,1359724);
  $ar3=array(452760,34349724);
  $ar4=array(1260,134344);
  $ar5=array(232750,1359724);
  $ar6=array(60,1439724);
  
  $arr[]=array(6299927 =&gt; $ar1);
  $arr[]=array(1252760 =&gt; $ar2);
  $arr[]=array(3432444 =&gt; $ar3);
  $arr[]=array(3435543 =&gt; $ar4);
  $arr[]=array(7645466 =&gt; $ar5);
  $arr[]=array(4574534 =&gt; $ar6);
  </code></pre>
  
  <p>Next function sorting array $a descending:</p>
  
  <pre><code>function cmp($a, $b)
  {
      if ($a == $b) {
          return 0;
      }
      return ($a &lt; $b) ? 1 : -1;
  }
  
  $a = array(3, 2, 5, 6, 1);
  
  usort($, "cmp");
  
  foreach ($a as $key =&gt; $value) {
      echo "$key: $value\n";
  }
  outpoot: 0:6 1:5 2:4 3:2 4:1
  </code></pre>
  
  <p>But how change this function for my example(for my  big array)?</p>
  
  <p>Tell me please how make this?</p>
  
  <p>How write right?</p>