Multi Array Sorting : <p>My Array is like this</p>

<pre><code>Array (
[0] =&gt; Array (
        [salesID] =&gt; 7
        [creditID] =&gt; 9
        [amount] =&gt; 80400.00
        [due_date] =&gt; 2018-12-12
        [status] =&gt; no
        [given_date] =&gt; 2018-09-30
        [av_class] =&gt; table-warning
        [name] =&gt; Kumaari
        [contact] =&gt; 0
    )

[1] =&gt; Array (
        [salesID] =&gt; 3
        [creditID] =&gt; 8
        [amount] =&gt; 500.00
        [due_date] =&gt; 2019-06-25
        [status] =&gt; yes
        [given_date] =&gt; 2018-09-30
        [av_class] =&gt; table-success
        [name] =&gt; Zayan
        [contact] =&gt; 0765894520
    )
 )
</code></pre>

<p>I want to short / re-order main array by sub array's value : [due_date]
Please help me. Main array key is not necessary, but sub array keys cannot be changed. </p>
