Sorting Array in array variable : <p>I have an array like this</p>

<pre><code>$data = array(
    array(
    'name'=&gt;'guguk',
    'nilai'=&gt;3
    ),
    array(
    'name'=&gt;'gogok',
    'nilai'=&gt;7
    )
);
</code></pre>

<p>so, how should I do to sort array base on attribute 'nilai'?</p>
