diff --git a/webapp/src/Service/ScoreboardService.php b/webapp/src/Service/ScoreboardService.php index 5cedbe210c..e1292937b5 100644 --- a/webapp/src/Service/ScoreboardService.php +++ b/webapp/src/Service/ScoreboardService.php @@ -750,7 +750,8 @@ public function getGroupedAffiliations(Contest $contest): array ->leftJoin('t.affiliation', 'affil') ->andWhere('cat.visible = 1') ->orderBy('cat.name') - ->addOrderBy('affil.name'); + ->addOrderBy('affil.name') + ->addOrderBy('t.name'); if (!$contest->isOpenToAllTeams()) { $queryBuilder diff --git a/webapp/templates/partials/scoreboard.html.twig b/webapp/templates/partials/scoreboard.html.twig index 79de781183..34af99a59b 100644 --- a/webapp/templates/partials/scoreboard.html.twig +++ b/webapp/templates/partials/scoreboard.html.twig @@ -67,14 +67,14 @@