Issue with Variant Size Sorting

Hello Shopify Community and Staff,

We have a product with two options:

  • Color
  • Size

Each color variant (e.g., Black, White) has sizes ranging from 0 to 32.

Since we are still unable to push more than 100 variants—despite documentation suggesting otherwise—we attempted to upload only variants that are in stock. However, this led to an issue with size sorting.

For example, if we have 7 colors and available sizes from 0 to 20, the sizes are displayed based on the color order, causing them to appear out of sequence. Even after updating via GraphQL mutation or manually through the admin, the sizes remain unsorted.

Why is this happening, and how can we ensure correct sorting?

We need a way to sort the size values :slight_smile:

References:


image