mirror of
https://github.com/shlinkio/shlink.git
synced 2025-03-14 04:00:57 +03:00
Added fallback ordering to tags list
This commit is contained in:
parent
d5606114cd
commit
361e864415
1 changed files with 1 additions and 0 deletions
|
@ -101,6 +101,7 @@ class TagRepository extends EntitySpecificationRepository implements TagReposito
|
|||
$orderField === 'shortUrlsCount' ? 'short_urls_count' : 'visits_count',
|
||||
$orderBy?->orderDirection() ?? 'ASC',
|
||||
)
|
||||
->addOrderBy('t.name_1', 'ASC') // In case of same amount, order by tag too
|
||||
->setMaxResults($filtering?->limit() ?? PHP_INT_MAX)
|
||||
->setFirstResult($filtering?->offset() ?? 0);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue