trie par lastname (ref #237)

This commit is contained in:
afornerot 2021-04-01 11:14:44 +02:00
parent 3fc0a1b809
commit c150c15bc7
1 changed files with 1 additions and 1 deletions

View File

@ -196,7 +196,7 @@
<label class="control-label required">Destinataires<span class="mandatory">*</span></label>
<select id="destinataires" style="width:100%" name="states[]" multiple="multiple">
{% for user in group.users %}
{% for user in group.users |sort((a, b) => a.user.lastname <=> b.user.lastname) %} %}
{%if(user.user!=app.user)%}
<option value="{{user.user.email}}" data-image="\{{alias}}\uploads\avatar\{{user.user.avatar}}">{{user.user.lastname}} {{user.user.firstname}}</option>
{%endif%}