<?php $array = [ ['item1' => 80], ['item2' => 25], ['item3' => 85], ]; usort($array, fn($a, $b) => current($a) <=> current($b)); var_export($array);
You have javascript disabled. You will not be able to edit any code.