{% for v in my_array | sort -%} {{ v }}{%- endfor %}