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; }