feat: sort award types by actor count descending
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
51a9f49797
commit
6b514aa87b
1 changed files with 1 additions and 1 deletions
|
|
@ -30,7 +30,7 @@ class AwardTypeRepository extends ServiceEntityRepository
|
|||
->groupBy('at.id')
|
||||
->having('COUNT(DISTINCT a.actor) >= :minActors')
|
||||
->setParameter('minActors', $minActors)
|
||||
->orderBy('at.name', 'ASC')
|
||||
->orderBy('COUNT(DISTINCT a.actor)', 'DESC')
|
||||
->getQuery()
|
||||
->getResult();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue