diff --git a/app/Helpers/Collection/Category.php b/app/Helpers/Collection/Category.php index e365d2c27d..b03b34aef4 100644 --- a/app/Helpers/Collection/Category.php +++ b/app/Helpers/Collection/Category.php @@ -55,7 +55,7 @@ class Category */ public function getCategories() { - $set = $this->categories->sortByDesc( + $set = $this->categories->sortBy( function (CategoryModel $category) { return $category->spent; }