{% macro render_labels(labels) -%} {% for label in labels |sortlabels %} {{ label.text }} {% endfor %} {%- endmacro %}