mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Sort account list by name [skip ci]
This commit is contained in:
parent
69c5c93353
commit
b2743825ca
@ -47,6 +47,12 @@ class AccountList implements BinderInterface
|
||||
->where('user_id', auth()->user()->id)
|
||||
->get(['accounts.*']);
|
||||
if ($object->count() > 0) {
|
||||
$object = $object->sortBy(
|
||||
function (Account $account) {
|
||||
return $account->name;
|
||||
}
|
||||
);
|
||||
|
||||
return $object;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user