Skip to content

Updated for tag to use sort_by and order_by tags to allow sorting#1

Open
mobyjames wants to merge 55 commits into
locomotivecms:masterfrom
mobyinc:for_loop_sort
Open

Updated for tag to use sort_by and order_by tags to allow sorting#1
mobyjames wants to merge 55 commits into
locomotivecms:masterfrom
mobyinc:for_loop_sort

Conversation

@mobyjames
Copy link
Copy Markdown

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.

did pushed a commit that referenced this pull request Oct 21, 2019
Pull inline with upstream
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants