title: natsort multidemsional array
body: <p>I have an multidimensional  array like this:</p>
  
  <pre><code>array ([0] =&gt; array ([id] =&gt; 1 [name] =&gt; john doe [title] =&gt; Mr [days] =&gt; 10) 
  [1] =&gt; array ([id] =&gt; 2 [name] =&gt; Joe Smith [title] =&gt; Dr [days] =&gt; 22) 
  [2] =&gt; array ([id] =&gt; 3 [name] =&gt; John Jones [title] =&gt; Mr [days] =&gt; 3))
  </code></pre>
  
  <p>I need to sort the inner arrays so that the data is returned in natural order by the days key.</p>
  
  <p>I.E like this: </p>
  
  <pre><code>array ([2] =&gt; array ([id] =&gt; 3 [name] =&gt; John Jones [title] =&gt; Mr [days] =&gt; 3)
  [0] =&gt; array ([id] =&gt; 1 [name] =&gt; john doe [title] =&gt; Mr [days] =&gt; 10) 
  [1] =&gt; array ([id] =&gt; 2 [name] =&gt; Joe Smith [title] =&gt; Dr [days] =&gt; 22))
  </code></pre>
  
  <p>I think what I need is a function that applies natsort to a multidimensional array by $key, but so far I haven't been able to find any functions that do anything other than standard sorting.</p>
  
  <p>Any help?</p>