Skip to main content
MerchandisingApp Store

How to sort a Shopify collection by inventory

Stock changes faster than a manual collection order. Rankify can put products with more units first, or put low stock first when you want those pieces to sell through.

Last updated 22 November 2026.

What you need​

  • Inventory tracked in Shopify for the products in the collection.
  • Rankify on any paid plan. Inventory is one rule, so Basic can do this on its own.

Steps​

  1. Create a strategy and add Inventory. Choose Descending for more units first, or Ascending for a clearance order. Steps are in Sort a collection by inventory.
  2. Attach it to the collection. Leave products you do not want in the collection out of Conditions.
  3. Add sold-out push down if a zero-stock product must not sit in the first row even for a moment between runs.
  4. If size availability should matter, use Sizes In Stock %. Reordering the Size option itself (S, M, L instead of alphabetical) is Option Sorting, on Plus and Advanced.
  5. Save and check the storefront after the sort finishes. Basic updates on a weekly cadence or slower. Use Sort Now on Plus or Advanced if you need it immediately.

Install the app​

Install from the Rankify listing. Getting started shows the first strategy and the first collection.