diff --git a/src/Illuminate/Collections/Arr.php b/src/Illuminate/Collections/Arr.php index 5ca863a6790f..da46b5b831a1 100644 --- a/src/Illuminate/Collections/Arr.php +++ b/src/Illuminate/Collections/Arr.php @@ -770,6 +770,18 @@ public static function sortRecursive($array, $options = SORT_REGULAR, $descendin return $array; } + /** + * Recursively sort an array by keys and values in descending order. + * + * @param array $array + * @param int $options + * @return array + */ + public function sortRecursiveDesc($array, $options = SORT_REGULAR) + { + return $this->sortRecursive($array, $options, true); + } + /** * Conditionally compile classes from an array into a CSS class list. *