From 938581527e47630f597a2ade0845c0b78df2f271 Mon Sep 17 00:00:00 2001 From: James Cole Date: Fri, 11 Dec 2015 18:31:15 +0100 Subject: [PATCH] Fix sorting. --- app/Helpers/Collection/Expense.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Helpers/Collection/Expense.php b/app/Helpers/Collection/Expense.php index b8218fdf9f..d18d9f53fc 100644 --- a/app/Helpers/Collection/Expense.php +++ b/app/Helpers/Collection/Expense.php @@ -65,7 +65,7 @@ class Expense */ public function getExpenses() { - $set = $this->expenses->sortByDesc( + $set = $this->expenses->sortBy( function (stdClass $object) { return $object->amount; }