title: PHP Sort array by field?
body: <blockquote>
  <p><strong>Possible Duplicate:</strong><br />
  <a href="https://stackoverflow.com/questions/2545544/how-to-sort-a-multidemensional-array-by-an-inner-key">how to sort a multidemensional array by an inner key</a><br />
  <a href="https://stackoverflow.com/questions/2978447/how-to-sort-an-array-of-arrays-in-php">How to sort an array of arrays in php?</a></p>
  </blockquote>
  
  <p>How can I sort an array like: <code>$array[$i]['title'];</code></p>
  <p>Array structure might be like:</p>
  <pre><code>array[0] (
    'id' =&gt; 321,
    'title' =&gt; 'Some Title',
    'slug' =&gt; 'some-title',
    'author' =&gt; 'Some Author',
    'author_slug' =&gt; 'some-author'
  );
  
  array[1] (
    'id' =&gt; 123,
    'title' =&gt; 'Another Title',
    'slug' =&gt; 'another-title',
    'author' =&gt; 'Another Author',
    'author_slug' =&gt; 'another-author'
  );
  </code></pre>
  <p>So data is displayed in <strong>ASC order</strong> based off the <strong>title field</strong> in the array?</p>