Add extra order for better form.

This commit is contained in:
James Cole
2020-07-26 14:30:56 +02:00
parent 633bc043da
commit 94c31ad747

View File

@@ -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) {