title: PHP array sort using inner val
body: <pre><code>Array
  (
  [1] =&gt; Array
      (
          [id] =&gt; 1
          [sort] =&gt; 1
      )
  
  [3] =&gt; Array
      (
          [id] =&gt; 3
          [sort] =&gt; 3
      )
  
  [2] =&gt; Array
      (
          [id] =&gt; 2
          [sort] =&gt; 2
      )
  </code></pre>
  
  <p>)</p>
  
  <p>How do i sort it so its re-ordered using the inner 'sort' key ? ie the above would look like this:</p>
  
  <pre><code>Array
  (
  [1] =&gt; Array
      (
          [id] =&gt; 1
          [sort] =&gt; 1
      )
  
  [2] =&gt; Array
      (
          [id] =&gt; 2
          [sort] =&gt; 2
      )
  
  [3] =&gt; Array
      (
          [id] =&gt; 3
          [sort] =&gt; 3
      )
  </code></pre>
  
  <p>)</p>