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:
thibaud-leclere
2026-04-02 00:05:55 +02:00
parent 51a9f49797
commit 6b514aa87b

View File

@@ -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();
} }