Hello All-
I am trying to sort a multidimensional array by the value of a particular element within the array. Below is my array:
Array
(
[0] => Array
(
[transaction_id] => 1775
[location] => Kansas City
[year] => 2005
[year_diff] => 0
[make] => Ford
[make_id] => 19
[model] => F150 Crew Cab
[model_id] => 19
[subseries] => Lariat
[color] => White
[doors] => C
[cylindars] => 8
[radio] => CD
[odometer] => 184783
[odometer_difference] => 101783
[odometer_difference_abs] => 101783
[price] => 8500
)
[1] => Array
(
[transaction_id] => 3406
[location] => Kansas City
[year] => 2005
[year_diff] => 0
[make] => Ford
[make_id] => 19
[model] => F150 Crew Cab
[model_id] => 19
[subseries] => Lariat
[color] => White
[doors] => C
[cylindars] => 8
[radio] => CD
[odometer] => 184783
[odometer_difference] => 101783
[odometer_difference_abs] => 101783
[price] => 8500
)
[2] => Array
(
[transaction_id] => 5941
[location] => Kansas City
[year] => 2005
[year_diff] => 0
[make] => Ford
[make_id] => 19
[model] => F150 Crew Cab
[model_id] => 19
[subseries] => FX4
[color] => Dk Blue
[doors] => C
[cylindars] => 8
[radio] => CD
[odometer] => 146584
[odometer_difference] => 63584
[odometer_difference_abs] => 63584
[price] => 8500
)
I want to sort these 3 elements by the [odometer_difference_abs] value. Any help on this would be much appreciated!