I have an array with following structure:
 Array
    (
        [ResultMass] => Array
            (
                [0] => SimpleXMLElement Object
                    (
                        //elements and other arrays
                        [FlightsTo] => SimpleXMLElement Object
                            (
                                [Flight] => SimpleXMLElement Object
                                    (
                                        [Company] => 4G
                                        //other elements
                                    )
                            )
                        [FlightsBack] => SimpleXMLElement Object
                            (
                                [Flight] => SimpleXMLElement Object
                                    (
                                        [Company] => 4G
                                        //other elements
                                    )
                            )
                    )
                    //other elements of 'resultmass'
               )
        )
    [Error] => 0
)
I need to sort ResultMass elements on "FlightsTo->Flight->Company" string of this elements. How can i do this by using array_multisort function? Or it can be done by other method? Thanks.
 
     
     
    