mirror of
https://github.com/shlinkio/shlink.git
synced 2025-02-25 18:45:27 -06:00
Added fallback ordering to tags list
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user