sort teams alphabetically in team_list (#2119)

This commit is contained in:
Kevin Papst
2020-11-12 11:03:37 +01:00
committed by GitHub
parent f916e0ce25
commit 49a4d1069a

View File

@@ -428,7 +428,7 @@
</thead>
{% endif %}
<tbody>
{% for team in teams %}
{% for team in teams|sort((a, b) => a.name <=> b.name) %}
<tr{% if is_granted('edit', team) %} class="modal-ajax-form open-edit" data-href="{{ path('admin_team_member', {'id': team.id}) }}"{% endif %}>
<td>
{{ team.name }}