We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
does liquidjs support sorting by key?
example
let data = { mydata: [ { "count": 3, "label": "None" }, { "count": 0, "label": "not bad" }, { "count": 0, "label": "awesome" }, { "count": 0, "label": "nice" }, { "count": 9, "label": "cool" } ] } console.log(await engine.parseAndRender(` <h1>{% assign sorted = data.mydata | sort: "data.count" %}</h1> {%for row in sorted%} <h2>{{row.count}}</h2> {% endfor %} `, { data }))
the code throws an error RenderError: The comparison function must be either a function or undefined, line:2, col:9
RenderError: The comparison function must be either a function or undefined, line:2, col:9
The text was updated successfully, but these errors were encountered:
feat: sort by key, see #227
4f17c94
chore(release): 9.12.0 [skip ci]
2de853e
# [9.12.0](v9.11.11...v9.12.0) (2020-05-15) ### Features * sort by key, see [#227](#227) ([4f17c94](4f17c94))
Ooooh, I just wanted to help you writing a fix for it. but you already did it. tested and working as expected. Thanks a lot
Sorry, something went wrong.
No branches or pull requests
does liquidjs support sorting by key?
example
the code throws an error
RenderError: The comparison function must be either a function or undefined, line:2, col:9
The text was updated successfully, but these errors were encountered: