How can I sort variant size filters with kids sizes first?

Topic summary

A merchant wants to customize the sorting order of size variant filters on their collection page, specifically to display kids’ sizes (3 months, 6 months, etc.) before adult sizes (S, M, L, XL, etc.).

Current Setup:

  • Using Discovery & Search App
  • Size filter is based on variant options created for each product
  • System automatically sorts sizes from XXS to XXL (not alphabetically)

Proposed Solutions:

  • One suggestion is to use custom Liquid code, though this may be complex for non-standard sorting patterns
  • Alternative recommendation: Switch to Ultimate Search and Filter app, which offers manual control over filter option ordering

Related Question:

  • A French store owner asks how to customize sorting for their “Grandeur” (size) variant, as alphabetical sorting doesn’t make sense for clothing sizes in French
Summarized with AI on November 13. AI used: claude-sonnet-4-5-20250929.

We would like to be able to sort the options in the size filter as you can see in the image below. Would this be possible? In this particular case, we would like to put the kids sizes first (3 months, 6 months, etc…) and then all the adult sizes.

Please note that this Size filter is based in Variant options created on every product and we are using Search & Discovery App.

Thanks in advance!

HI @Miguel_JN ,

Can You share your store url

URL Store: https://uglychristmassweater.shop/

This will be to be sorted by code in the liquid but since liquid doesn’t support complicated sort like this case, I would recommend the use of another filter app with the ability to manually order the filter option https://apps.shopify.com/ultimate-search-and-filter-1

Hi Minhcu, where is the sorting rule for a variant name “size”, we see it’s automatically sort from XXS to XXL (so not alphabetically). How can we change this to that is also sort another specific variant not using the same “size” to so the same? our store is in french so our size variant is called “Grandeur”, but if we try to filter collection page the variant “Grandeur” are place in alphabetical order, which makes no sense for a clothing store. thanks.