Assuming we have the following array:
$edibles = [
['Apple', 250],
['Pear', 300],
['Cherry', 270],
['Tomato', 300],
['Carrot', 240],
['Potato', 170]
];
What would be the best way to sort those items by item[1]?
There are no array keys present which is why the google results didn't help me very much.
Thank you in advance!