diff --git a/app/Repositories/Account/AccountRepository.php b/app/Repositories/Account/AccountRepository.php index 57728ffe9b..02e06bb0f4 100644 --- a/app/Repositories/Account/AccountRepository.php +++ b/app/Repositories/Account/AccountRepository.php @@ -498,6 +498,8 @@ class AccountRepository implements AccountRepositoryInterface } $query->orderBy('accounts.active', 'DESC'); $query->orderBy('accounts.name', 'ASC'); + $query->orderBy('accounts.account_type_id', 'ASC'); + $query->orderBy('accounts.id', 'ASC'); } return $query->get(['accounts.*']); diff --git a/app/Repositories/UserGroups/Account/AccountRepository.php b/app/Repositories/UserGroups/Account/AccountRepository.php index 6e70c4cf94..912a4d0e0e 100644 --- a/app/Repositories/UserGroups/Account/AccountRepository.php +++ b/app/Repositories/UserGroups/Account/AccountRepository.php @@ -361,6 +361,8 @@ class AccountRepository implements AccountRepositoryInterface } $query->orderBy('accounts.order', 'ASC'); $query->orderBy('accounts.name', 'ASC'); + $query->orderBy('accounts.account_type_id', 'ASC'); + $query->orderBy('accounts.id', 'ASC'); } return $query->get(['accounts.*']);