diff --git a/budget/templates/list_bills.html b/budget/templates/list_bills.html index 192e200..3b33fb8 100644 --- a/budget/templates/list_bills.html +++ b/budget/templates/list_bills.html @@ -137,15 +137,13 @@
{% set balance = g.project.balance %} - {% for member in g.project.members %} - {% if member.activated or balance[member.id] != 0 %} + {% for member in g.project.members | sort(attribute='name') if member.activated or balance[member.id] != 0 %} - {% endif %} {% endfor %}
{{ member.name }} {% if balance[member.id] > 0 %}+{% endif %}{{ balance[member.id] }}