From e6d766b40b3f4a9a3fb6488fad8cb7191f692bf3 Mon Sep 17 00:00:00 2001 From: psy <psy@darmstadt.ccc.de> Date: Fri, 11 Dec 2020 10:03:17 +0100 Subject: [PATCH] sort roles --- uffd/user/templates/user.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uffd/user/templates/user.html b/uffd/user/templates/user.html index 3458d375..7b6401b2 100644 --- a/uffd/user/templates/user.html +++ b/uffd/user/templates/user.html @@ -79,7 +79,7 @@ </tr> </thead> <tbody> - {% for role in roles %} + {% for role in roles|sort(attribute="name") %} <tr id="role-{{ role.id }}"> <td> <div class="form-check"> -- GitLab