I have this array
Array
(
[0] => Array
(
[brand] => blah blah
[location] => blah blah
[address] =>
If you want to avoid the looping you can use the array_column function to achieve your target. For Example,
You want to sort below array with distance sort
$arr = array(
0 => array( 'lat' => 34, 'distance' => 332.08 ),
1 => array( 'lat' => 34, 'distance' => 5 ),
2 => array( 'lat' => 34, 'distance' => 34 )
);
Using below single line your array will be sort by distance
array_multisort( array_column( $arr, 'distance' ), SORT_ASC, SORT_NUMERIC, $arr );
Now, $arr contain with sorted array by distance