Sort an array of associative arrays by value of a given key in PHP?

Now sort $inventory’s elements by price to get:

we used array_multisort()

For ascending order used SORT_ASC and for

Read more