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:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user