PHP ARRAY sort at thrid level
<p>Hi I am actually trying to sort an array at third level with different keys.</p>

<p>The below is Sample array input.</p>

<pre><code>Array
(
    [19067] =&gt; Array
        (
            [Morrisville, PA] =&gt; 5.02
        )

    [18977] =&gt; Array
        (
            [Washington Crossing, PA] =&gt; 6.63
        )

    [08695] =&gt; Array
        (
            [Trenton, NJ] =&gt; 2.84
        )

    [08690] =&gt; Array
        (
            [Trenton, NJ] =&gt; 1
        )

    [08666] =&gt; Array
        (
            [Trenton, NJ] =&gt; 2.84
        )

    [08650] =&gt; Array
        (
            [Trenton, NJ] =&gt; 0
        )

    [08648] =&gt; Array
        (
            [Lawrence Township, NJ] =&gt; 2.88
        )

    [08647] =&gt; Array
        (
            [Trenton, NJ] =&gt; 2.84
        )

    [08646] =&gt; Array
        (
            [Trenton, NJ] =&gt; 2
        )

)
</code></pre>

<p>Can any body help me to sort the above array at third level</p>

<p>Expected result should like: </p>

<p>Output:</p>

<pre><code>Array
(
    [08650] =&gt; Array
        (
            [Trenton, NJ] =&gt; 0
        )

    [08690] =&gt; Array
        (
            [Trenton, NJ] =&gt; 1
        )   

     [08646] =&gt; Array
        (
            [Trenton, NJ] =&gt; 2
        )

    [08666] =&gt; Array
        (
            [Trenton, NJ] =&gt; 2.84
        )   

    [08695] =&gt; Array
        (
            [Trenton, NJ] =&gt; 2.84
        )

    [08647] =&gt; Array
        (
            [Trenton, NJ] =&gt; 2.84
        )

    [08648] =&gt; Array
        (
            [Lawrence Township, NJ] =&gt; 2.88
        )

    [19067] =&gt; Array
        (
            [Morrisville, PA] =&gt; 5.02
        )

    [18977] =&gt; Array
        (
            [Washington Crossing, PA] =&gt; 6.63
        )   


)
</code></pre>

<p>Thanks in advance..</p>
