Fix sorting.

This commit is contained in:
James Cole 2015-12-11 18:31:15 +01:00
parent c38ae09735
commit 938581527e

View File

@ -65,7 +65,7 @@ class Expense
*/
public function getExpenses()
{
$set = $this->expenses->sortByDesc(
$set = $this->expenses->sortBy(
function (stdClass $object) {
return $object->amount;
}