sort array with its index
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/2699086/php-sort-multidimensional-array-by-value">PHP sort multidimensional array by value</a>  </p>
</blockquote>



<p>I have an array like this -</p>

<pre><code>Array
(
    [0] =&gt; Array
        (
            [rest_id] =&gt; 1
            [restname] =&gt; Baumgart's Cafe
            [address] =&gt; 158 Franklin Avenue
            [distance] =&gt; 20.3599115829
        )

    [1] =&gt; Array
        (
            [rest_id] =&gt; 2
            [restname] =&gt; Brownstone Diner &amp; Pancake Factory
            [address] =&gt; 426 Jersey Avenue
            [distance] =&gt; 12.422657991
        )

    [2] =&gt; Array
        (
            [rest_id] =&gt; 3
            [restname] =&gt; Jacques Torres Chocolate
            [address] =&gt; 285 Amsterdam Avenue
            [distance] =&gt; 16.3264917908
        )

    [3] =&gt; Array
        (
            [rest_id] =&gt; 4
            [restname] =&gt; Ed's Health Food
            [address] =&gt; 150 Mountain Avenue
            [distance] =&gt; 31.1066764629
        )
</code></pre>

<p>I want to sort this array on distance. 
Any help is appreciated.
Thnak you.</p>
