Developer forum

Forum » Swift » Order of facets

Order of facets

Caro De Weze
Reply

Hi,

I want to adjust the order of filtering on the category page. Now this example is listed alphabetically, but that does not make sense here:

The sizes must be arranged from smallest to largest. Where can I set this or what adjustments do I need to make?

Kind regards,
Caro De Weze


Replies

 
Merethe Vrå Andersen Dynamicweb Employee
Merethe Vrå Andersen
Reply

Hi,

This is something you need to handle custom because it sorts alphabetically by default in Swift.
You can make a custom order in your facets by making a List facet where you add your facet options and sort them as yopu like like in my attachment.
Notice that if you add a new variant option in Settings - Product catalog - Variants, then you need to add i manually in your List facet too.

BR,
Merethe Vrå Andersen

2024-06-06_13-38-23.jpg

 

You must be logged in to post in the forum