How to sort array according to value in sub-sub array? : I am trying to sort each 'Rates' array by price from low to high. I cannot figure it out looking at other solutions.

Is there anyone who knows how to sort this?

**Note that there is multiple arrays like [13188] within the main array.**

`Array
(
    [13188] =&gt; Array
        (
            [Rates] =&gt; Array
                (
                    [0] =&gt; Array
                        (
                            [RateName] =&gt; Standard Rate
                            [Price] =&gt; 499.56
                        )
                    [18739] =&gt; Array
                        (
                            [RateName] =&gt; Second Rate
                            [Price] =&gt; 449.6
                        )
                )
        )`

I want it to be like this:

`Array
(
    [13188] =&gt; Array
        (
            [Rates] =&gt; Array
                (
                    [18739] =&gt; Array
                        (
                            [RateName] =&gt; Second Rate
                            [Price] =&gt; 449.6
                        )
                    [0] =&gt; Array
                        (
                            [RateName] =&gt; Standard Rate
                            [Price] =&gt; 499.56
                        )
                )
        )`