Simple way to sort an array with usort on a specific value using a comparator.
usort($myArray, function ($a, $b) { return $a['foo'] > $b['foo']; });
Simple way to sort an array with usort on a specific value using a comparator.
usort($myArray, function ($a, $b) { return $a['foo'] > $b['foo']; });