Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 55 commits into
base: master
Choose a base branch
from

Conversation

mobyjames
Copy link

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