From 4a2823bcbadbfc2e9fe9c1026af60e0b2020bcf2 Mon Sep 17 00:00:00 2001 From: James Cole Date: Fri, 11 Dec 2015 18:05:07 +0100 Subject: [PATCH] Reverse sort. --- app/Helpers/Collection/Category.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }