There is such an array
$inventory['status'] = 'success'; $inventory['weapons'][$i]['id'] = $itemID; $inventory['weapons'][$i]['name'] = $name; $inventory['weapons'][$i]['title'] = $market_name; $inventory['weapons'][$i]['quality'] = $quality; $inventory['weapons'][$i]['price'] = ($price >= 10)? round($price - ($price * 0.1), 0) : round($price - 2, 0); I need to sort it by descending price .
I tried to use sort, usort, but as I understood it. They sort only arrays of the type [1,3,2];
Preferred sample code.