How can I sort collection categories manually in liquid code?

Hi,

I am importing collection categories on collection list page through custom liquid code {% for collection in collections %} but it shows all the collection categories list on alphabetical order (A-Z). I want to show it by manual order but i missed the correct code. can anyone help m

Hello @preetcomm

https://yagisoftware.com/articles/how-to-customize-sorting-options-on-collection-page.html

Hi,

thanks for your reply but in my website the designer is not adding collection list via collection list section. He is custom liquid section using {% for collection in collections %} this code to call the collection categories. I just know how to reversed the alphabetical order like {% for collection in collections reversed%} but i want to sort it by manual order