From c212d5c5eac81af36890b16a5f10345ac4d4a9ad Mon Sep 17 00:00:00 2001 From: James Cole Date: Sat, 14 Jan 2017 21:00:43 +0100 Subject: [PATCH] Order by date does not matter in this context. --- app/Support/Steam.php | 1 - 1 file changed, 1 deletion(-) diff --git a/app/Support/Steam.php b/app/Support/Steam.php index 1761cf0ec6..0e06913bca 100644 --- a/app/Support/Steam.php +++ b/app/Support/Steam.php @@ -165,7 +165,6 @@ class Steam ->where('transaction_journals.date', '<=', $date->format('Y-m-d')) ->groupBy('transactions.account_id') ->whereIn('transactions.account_id', $ids) - ->orderBy('transaction_journals.date', 'ASC') ->whereNull('transaction_journals.deleted_at') ->get(['transactions.account_id', DB::raw('sum(transactions.amount) AS aggregate')]);