How to sort arrays inside an array?
<p>I need to sort arrays inside an array of array based on one of the array's array value.</p>

<p>For example:</p>

<pre><code>$data = array( array( 1, "Article One", 132, 12402773, 3 ),
               array( 2, "Article Two", 251, 12519283, 5 ),
               array( 3, "Article Three", 107, 12411321, 3 ),
               array( 4, "Article Four", 501, 12228135, 4 ) );
</code></pre>

<p>By default, if I print the 2nd element of each array:</p>

<ul>
<li>Article One</li>
<li>Article Two</li>
<li>Article Three</li>
<li>Article Four</li>
</ul>

<p>I need to sort it in a descending order by the 3rd element of the child-array.</p>

<p>So it would be like this:</p>

<ul>
<li>Article Four</li>
<li>Article Two</li>
<li>Article One</li>
<li>Article Three</li>
</ul>

<p>Because 501 > 251 > 132 > 107.</p>

<p>Any suggestion?</p>
