rsort
laravel/framework
Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Sort an array in descending order
rsort
(array &
$array
,
int $flags
=
SORT_REGULAR
):
bool
:
ksort
(
$array
,
$options
);
} else {
$descending
?
rsort
(
$array
,
$options
)
:
sort
(
$array
,
$options
);
}
src/Illuminate/Collections/Arr.php