I have a multidimensional array that needs to be reoreder, the array look like this :
[products] => Array
                    (
                    [149] => Array
                        (
                            [name] => Ichikami1
                            [qty] => 2
                        )
                    [150] => Array
                        (
                            [name] => Ichikami2
                            [qty] => 4
                        )
                    [377] => Array
                        (
                            [name] => BCL
                            [qty] => 2
                        )
                )
inside the child array there is 'qty' index, i want to sort the child array by 'qty' index in descending order, so it will look like this:
[products] => Array
                    (
                        [0] => Array
                            (
                                [name] => Ichikami2 
                                [qty] => 4
                            )
                        [1] => Array
                            (
                                [name] => Ichikami1 
                                [qty] => 2
                            )
                        [2] => Array
                            (
                                [name] => BCL 
                                [qty] => 2
                            )
                    )
is there a way to do this?
 
    