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