Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Sort account list by name [skip ci]
James Coleb2743825ca39
diff --git a/app/Support/Binder/AccountList.php b/app/Support/Binder/AccountList.phpindex 1512f0bbfa..da684a089f 100644--- a/app/Support/Binder/AccountList.php+++ b/app/Support/Binder/AccountList.php@@ -47,6 +47,12 @@ class AccountList implements BinderInterface->where('user_id', auth()->user()->id)->get(['accounts.*']);if ($object->count() > 0) {+ $object = $object->sortBy(+ function (Account $account) {+ return $account->name;+ }+ );+return $object;}}