Having trouble finding the correct function to sort a multi dimensional array as follows:
Array(    [0] => Array      (
             [username]    => 123           
             [name]        => Name    
             [address]     => array  (
                                 [line1]    => address line 1
                                 [line2]    => address line 2
                                 [postcode] => postcode
                            ),
         [1] => Array      (
             [username]    => 1234           
             [name]        => Name    
             [address]     => array  (
                                 [line1]    => address line 1
                                 [line2]    => address line 2
                                 [postcode] => postcode
                            )
)
I wish to sort the above array by an element in the address array().
I am aware of the array_multisort function which will quite easily sort by either username, or address but just cant figure out how to sort using a field another level down.
Any help would be much appreciated
Thanks
 
     
     
    