mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-05-04 08:29:50 -05:00
Sort alphabetically https://github.com/orgs/firefly-iii/discussions/11524
This commit is contained in:
@@ -331,7 +331,7 @@ class CategoryRepository implements CategoryRepositoryInterface, UserGroupInterf
|
||||
|
||||
public function searchCategory(string $query, int $limit): Collection
|
||||
{
|
||||
$search = $this->user->categories();
|
||||
$search = $this->user->categories()->orderBy('name', 'ASC');
|
||||
if ('' !== $query) {
|
||||
$search->whereLike('name', sprintf('%%%s%%', $query));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user