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
No known key found for this signature in database
GPG Key ID: B5669F9493CDE38D

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