locomotivecms/liquid — pull request #1 by mobyjames (2012-05-25 16:44:36+00:00)
Title: Updated for tag to use sort_by and order_by tags to allow sorting

We added a sort feature for the 'for' tag based on the sort feature already present in the main shopify/liquid repo. The appropriate commit/pull request is mentioned in the commit message, just for reference.

The syntax is identical, e.g.

{% for tag in post.tags sort_by: name order: descending %}
{{ tag.name }}
{% endfor %}

We believe this feature adds a great deal of functionality when accessing relationships, as in the above example.