From 94c31ad747b33ca0edefefeee40c2de060d8074a Mon Sep 17 00:00:00 2001 From: James Cole Date: Sun, 26 Jul 2020 14:30:56 +0200 Subject: [PATCH] Add extra order for better form. --- app/Repositories/Account/AccountRepository.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Repositories/Account/AccountRepository.php b/app/Repositories/Account/AccountRepository.php index 06f6aef7aa..f00974fd23 100644 --- a/app/Repositories/Account/AccountRepository.php +++ b/app/Repositories/Account/AccountRepository.php @@ -568,6 +568,7 @@ class AccountRepository implements AccountRepositoryInterface $dbQuery = $this->user->accounts() ->where('active', 1) ->orderBy('accounts.order', 'ASC') + ->orderBy('accounts.account_type_id', 'ASC') ->orderBy('accounts.name', 'ASC') ->with(['accountType']); if ('' !== $query) {