Collections - manual sorting - new items

Highlighted
New Member
1 0 0

Hi all

We have manual sorting for all our collections but when we add new items into the collections these don't automatically go to the top of the list.

Is there a way to have manual sorting on but new items automatically go to the front of the list.

Thanks in advance 

0 Likes
Highlighted
Shopify Partner
1151 232 299

Hello,

Try with this code

 {% assign products = collections.your_collection.products | sort: 'published_at' | reverse %}
  {% for product in products %}
    // You r existing code
  {% endfor %}


Thanks 

Want to modify or custom changes on store hire me.
My Email: guleriathakur43@gmail.com
Skype: navrocks1
If helpful then please Like and Accept Solution.
If you are happy and want to donate small Click here (Its my paypal)
0 Likes