uksort
laravel/framework
Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Sort an array by keys using a user-defined comparison function
uksort
(array &
$array
, callable
$callback
):
bool
{
$items
=
$this
->
items
;
uksort
(
$items
,
$callback
);
return new static(
$items
);
}
src/Illuminate/Collections/Collection.php