Side Bar Filter Is Wrong For Sizes

Hello,

I have an issue where the sidebar filters are set to alphabetical order so when you have an Size filter it doesn’t show how you would expect S, M, L, XL instead it shows L, M, S, XL.

I was wondering if someone could point me in the right direction as to where to find this code?

Dawn Theme 10.0.0

Thanks in Advance.

Hi Mike,

To change how this filter works you’d be looking to customise the facets.liquid snippet, and likely the corresponding facets.js file. I’ve also passed this feedback on to the Dawn team as they may want to create a native solution for handling different filtering options.

Hope this helps!

The filter render liquid should be in facets.liquid, starting from this {%- for filter in results.filters -%}

However, it is A-Z sorted by default and cannot be changed using liquid only.

Or, you can try this app, which allows you to manually order filter option: https://apps.shopify.com/ultimate-search-and-filter-1

Thanks Liam,

Appreciated the response. I’ll have a look into sorting it out over the weekend when I have time.

Thanks again!

Hello Minchu,

Thanks for the reply. I don’t want to use an app to solve this issue so I will have a look at adding code over the weekend when I get time.

Thanks for your time!