$inventory = array( array("type"=>"fruit", "price"=>3.50), array("type"=>"milk", "price"=>2.90), array("type"=>"pork", "price"=>5.43), ); $price = array_column($inventory, 'price'); array_multisort($price, SORT_DESC, $inventory);
usort($array, function ($a, $b) { return ($a['specific_key'] < $b['specific_key']) ? -1 : 1; });