In Shopify, a collection can have a default sorting order, which is great. But is there a way to change the default sorting order prior to rendering the collection’s list of products? What I’m trying to accomplish is to put a “sort by” dropdown menu on the page, allowing the customer to sort the current list by price, by brand, by best selling items, alphabetically, etc. like so many modern shopping carts out there.
Share
Collections are sorted ahead of time rather than sorted dynamically so that pages can load faster.
You can create multiple collections with the same products, but with different sorting. Then you can navigate to relevant collection based on user input.