<select name="module-de-tri" id="sort-list" class="form-control" required="required" onchange="if (this.value) window.location.href=this.value">
{% for item in order_select %}
{% set route_params = app.request.attributes.get('_route_params')|merge(app.request.query.all|merge({'order': item.order })) %}
<option value="{{ path(app.request.attributes.get('_route'), route_params|arr_unset('page')|arr_unset('mode')) }}" {{ item.selected }}> {{ item.descr }} </option>
{% endfor %}
</select>