diff --git a/src/Illuminate/Collections/Collection.php b/src/Illuminate/Collections/Collection.php index 62f8d9336c01..0bbbe189816f 100644 --- a/src/Illuminate/Collections/Collection.php +++ b/src/Illuminate/Collections/Collection.php @@ -1493,7 +1493,9 @@ public function sortByDesc($callback, $options = SORT_REGULAR) if (is_array($callback) && ! is_callable($callback)) { foreach ($callback as $index => $key) { $comparison = Arr::wrap($key); + $comparison[1] = 'desc'; + $callback[$index] = $comparison; } }