Zephron logozephron.aiE-commerce, accelerated

All guides / VarSort

How to change the order of variants in Shopify, so sizes show in order

Published November 26, 2026 · VarSort by Jedi Apps

Also in: Español · Français · Deutsch · Português (Brasil)

Short answer

Shopify lists a product's variants in the order of its option values, which is the order you added them, so a size added later ends up last. To fix one product, open it in your Shopify admin and drag the option values, such as sizes, into the order you want: the variant buttons or dropdown on your product page follow. To keep many products in order, an app such as VarSort, which is free, sorts variants by a size sequence, price, inventory, newest or best selling, and can push sold-out variants to the bottom, on demand or on a schedule.

Why variant order matters

Variant order is the order of the size and color buttons, or the dropdown, on your product page. When sizes show as M, XL, S, L, shoppers have to read every button to find theirs, and the page looks unfinished.

How Shopify decides the order

A product has up to three options, such as Size and Color, and each option has values, such as S, M and L. Shopify orders the variants by the first option's values, then by the second's: with Size first, all the Small variants come before the Medium ones. Values keep the order you added them in, so a size you add later, such as XS, lands at the end. Shopify's developer documentation describes it the same way: change the order of the options and their values, and the order of the variants shown to customers changes with it.

Your options

Option What it does The catch
Drag option values in the admin Reorders one product's values, and with them its variants and its picker on the product page One product at a time; values you add later land at the end again
Theme code Sorts the buttons in the theme's Liquid Changes only what that theme shows, needs code, and a theme update can undo it
An app such as VarSort Sorts the variants of every product that matches your conditions, on demand or on a schedule Needs an app; VarSort is free

How to reorder variants by hand

  1. In your Shopify admin, go to Products and open the product.
  2. In the Variants section, click the option you want to reorder, such as Size, to edit it.
  3. Drag its values into the order you want, such as XS, S, M, L, XL.
  4. Save the product.

To show Color before Size, drag the options themselves the same way. This is fine for a few products. With a large catalog, or new sizes arriving every season, it's slow, and every value you add later starts at the end again.

How to keep variants sorted automatically with VarSort

VarSort keeps every product's variants in the order you choose, from rules you set once:

  1. Install VarSort and build an automation.
  2. Pick the products it covers, with conditions.
  3. Set the order: a size sequence, with XS to XL presets or your own sequence, or price, inventory, newest or best selling.
  4. Choose whether sold-out variants go to the bottom, so in-stock options show first.
  5. Preview the changes before they're saved, then run the automation on demand or on a schedule.

It changes the order of the size picker on your storefront too, not just the variant list in the admin.

Tips for an order that helps shoppers

  • Keep sizes in size order. Shoppers look for their size where they expect it. XS, S, M, L, XL beats alphabetical order (L, M, S, XL, XS) every time.
  • Think before pushing sold-out sizes to the end. S, M, XL, L reads like a mistake. For sizes, many stores keep the sequence and let the theme mark the sold-out size, and push sold-out options to the end for colors or styles.
  • Best selling first suits colors and styles, where there's no natural order.
  • Hiding sold-out variants is a different fix. To take them off the product page entirely, see how to hide sold-out variants on Shopify.

Questions merchants ask

Why are my Shopify variants in the wrong order?
Shopify lists variants in the order of their option values, which is the order you added them. A size you add later, such as XS, ends up at the end until you move it. Drag the values into order on the product page in your admin, or use an app to sort many products at once.
How do I change the order of sizes on my product page?
Open the product in your Shopify admin, click the Size option in the Variants section, drag its values into the order you want and save. The size buttons or dropdown on your product page follow the new order.
Can I sort the variants of all my products at once?
Not in the Shopify admin, which reorders one product at a time. VarSort, a free app, sorts the variants of every product that matches your conditions by a size sequence, price, inventory, newest or best selling, with a preview before saving, on demand or on a schedule.
Can I move sold-out variants to the bottom?
Yes, with an app such as VarSort, which can push sold-out variants to the bottom so in-stock options show first. For sizes, check that breaking the size sequence helps your shoppers; for colors and styles it usually does.
Does changing the variant order change my storefront?
Yes. The order of a product's option values decides the order of its variant buttons or dropdown on the product page, and the order of its variants wherever they're listed.
How much does VarSort cost?
VarSort is free.

Plans and features as listed on the Shopify App Store on November 26, 2026.