title: sort array of arrays in php
body: <p>I have an array that is created like this:</p>
  
  <pre><code>$i = 0;
  
  $files = array();   
  
  while ($file = mysql_fetch_array($query_files)) {
      $files[$i] = array();
      $files[$i] = $file;
      $i++;
  }
  </code></pre>
  
  <p>And I need to be able to sort the $files array based on each $file['name'] aka $files[$i]['name'].</p>
  
  <p>How do I do this?
  Thanks!</p>