From d5afba61370fe2be47a35213995cd7fb98d75cf8 Mon Sep 17 00:00:00 2001 From: James Cole Date: Sun, 27 Oct 2019 18:12:30 +0100 Subject: [PATCH] Fix order account. --- 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 048e3457a5..b9f41daeba 100644 --- a/app/Repositories/Account/AccountRepository.php +++ b/app/Repositories/Account/AccountRepository.php @@ -554,6 +554,7 @@ class AccountRepository implements AccountRepositoryInterface { $dbQuery = $this->user->accounts() ->where('active', 1) + ->orderBy('accounts.name', 'ASC') ->with(['accountType']); if ('' !== $query) { $search = sprintf('%%%s%%', $query);