diff --git a/app/Support/Binder/AccountList.php b/app/Support/Binder/AccountList.php index 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; } }