Welcome to the Liquify Community

Updated 3 weeks ago

Sort Collection List

I want to show my collection list sorted by letters. I used {% assign sorted_collections = collections | sort: "metafields.custom.sorting.value" %} but it doesn´t work. Does somebody know what I need to change?

Live-URL: https://7k7dzb9dj5lhvssh-57626296517.shopifypreview.com
Read-only: https://preview.webflow.com/preview/gooddesk-2-0?utm_medium=preview_link&utm_source=designer&utm_content=gooddesk-2-0&preview=b591d4a7ccf27c45128c1df7a9620d22&locale=en&workflow=preview

Thank you
Attachment
image.png
J
c
5 comments
I think you need to put it like this, with sort_natural and directly going to the metafield:
{% assign sorted_collections = collections | sort_natural: "sorting.value" %
it doesn´t change anything
It doesn´t matter anymore, I change it to Blocks instead of Meta Objects
Add a reply
Sign up and join the conversation on Discord