{% assign sortedTags = page.tags | sort %} {% for tag in sortedTags %} #{{ tag }} {% endfor %}