Sorting Sub Arrays
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/3424430/php-sorting-multidimentional-arrays">PHP sorting multidimentional arrays</a>  </p>
</blockquote>



<p>I have a multi dimensional array like this </p>

<pre><code>Array ( 
[userinfo] =&gt; Array ( [side] =&gt; 0 [visits] =&gt; 0 )
[contactpanel] =&gt; Array ( [side] =&gt; 0 [visits] =&gt; 1 )
[mydetails] =&gt; Array ( [side] =&gt; 0 [visits] =&gt; 2 )
[myblogs] =&gt; Array ( [side] =&gt; 0 [visits] =&gt; 3 )
[myfriends] =&gt; Array ( [side] =&gt; 1 [visits] =&gt; 0 )
[mygallery] =&gt; Array ( [side] =&gt; 1 [visits] =&gt; 1 )
)
</code></pre>

<p>I want to sort the inner arrays according to the value of the  "visits" . How is that possible?... is there a function in php which can do this?</p>
