Is there a way to sort a number of posts alphabetically, using Jekyll?
I have something like this now:
{% for post in site.categories.threat %}
I wanted to add following for future reference.
To sort posts by title, you can use sort
filter.
See http://jekyllrb.com/docs/templates/#filters
So, this works:
{% assign sorted_threat_posts = site.categories.threat | sort: 'title', 'last' %}
{% for post in sorted_threat_posts %}
<li><a href="{{ post.url }}">{{ post.title }}</a></li>
{% endfor %}