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')
|
->groupBy('at.id')
|
||||||
->having('COUNT(DISTINCT a.actor) >= :minActors')
|
->having('COUNT(DISTINCT a.actor) >= :minActors')
|
||||||
->setParameter('minActors', $minActors)
|
->setParameter('minActors', $minActors)
|
||||||
->orderBy('at.name', 'ASC')
|
->orderBy('COUNT(DISTINCT a.actor)', 'DESC')
|
||||||
->getQuery()
|
->getQuery()
|
||||||
->getResult();
|
->getResult();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user