Skip to content

Firefly III: a personal finances manager

Order accounts by name.

James Colec69ef34ac95d
diff --git a/app/Helpers/Report/ReportQuery.php b/app/Helpers/Report/ReportQuery.php
index f0625bed7c..f7b30c7e30 100644
--- a/app/Helpers/Report/ReportQuery.php
+++ b/app/Helpers/Report/ReportQuery.php
@@ -110,7 +110,7 @@ class ReportQuery implements ReportQueryInterface
*/
public function getAllAccounts(Carbon $start, Carbon $end)
{
- $set = Auth::user()->accounts()
+ $set = Auth::user()->accounts()->orderBy('accounts.name','ASC')
->accountTypeIn(['Default account', 'Asset account', 'Cash account'])
->leftJoin(
'account_meta', function (JoinClause $join) {