From 49a4d1069acfcb603fb4be9fff070a01c96384b9 Mon Sep 17 00:00:00 2001 From: Kevin Papst Date: Thu, 12 Nov 2020 11:03:37 +0100 Subject: [PATCH] sort teams alphabetically in team_list (#2119) --- templates/macros/widgets.html.twig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/macros/widgets.html.twig b/templates/macros/widgets.html.twig index 3d066477..c0a48e91 100644 --- a/templates/macros/widgets.html.twig +++ b/templates/macros/widgets.html.twig @@ -428,7 +428,7 @@ {% endif %} - {% for team in teams %} + {% for team in teams|sort((a, b) => a.name <=> b.name) %} {{ team.name }}