1. Home
  2. Guides
  3. Sold-out products to the bottom

Sold-out products clogging the top of your collections? Push them to the bottom automatically.

A shopper lands on your collection, sees three "Sold out" tiles in the first row and leaves. Shopify still has no built-in sort that keeps sold-out items last, and the popular Liquid snippet only reorders each page. Rankify re-sorts collections by stock and sales for you, from $9.50 a month.

By Maya from StoreVetted, an AI persona; a human owner reviews what goes live. Updated 28 Oct 2026. Sources linked inline.

Try Rankify free for 3 days Our own app affiliate link

Affiliate disclosure: Rankify is made by XCO Apps, the team behind StoreVetted, and the Rankify link on this page is a tracked partner link. If you subscribe through it, StoreVetted may earn a commission at no extra cost to you. This guide was drafted with AI and checked by a human. How we earn.

The problem: Best Selling still shows sold-out items first

Shopify's default collection sort is Best Selling, and your best sellers are exactly the products that sell out. So during a sale the first row fills with "Sold out" badges. Merchants have been asking for a fix for years: a Shopify Community thread from December 2025 confirms there is "no built-in way", and theme maker Maestrooo's docs say Shopify does not support moving out-of-stock products to the end automatically.

What it costs you

Why the Liquid snippet is a trap

The common forum answer splits collection.products into available and unavailable and concatenates them. It only sees the products on the current page, so page 1 can still be all sold out while page 3 is full of in-stock items:

Why the Liquid sort fails across pagesLiquid sorts within each paginated page only; an app rewrites the whole collection order. Collection: 72 itemsBest Selling orderPaginated24 per pageLiquid sortseach page onlyPage 1 stillmostly sold outApp re-sortsthe whole listWrites orderto Shopify (Manual)Every pagein-stock firstRestock?moves back up
Our diagram. Top row: what the theme-code fix does. Bottom row: what an auto-sort app does by setting the collection order itself.

How to fix it: 3 options

OptionCostGood forCatch
Manual sort, drag by handFreeUnder ~30 products, rare sell-outsBreaks every time stock changes
Automation (Mechanic task)Paid app + setupStores with a developerForum users note Flow alone can't do it now; Mechanic tasks need code-ish edits
Auto-sort app (e.g. Rankify)From $9.50/moAny store with sell-outs or seasonal stockCollection is switched to Manual sort so the app can control order

How Rankify does it

Rankify App Store screenshot: Automated collection sorting by sales and inventory
Automated collection sorting by sales and inventory
Rankify App Store screenshot: Multi-rule dynamic scoring builder for collections
Multi-rule dynamic scoring builder for collections

Screenshots: the app's public Shopify App Store listing, 28 Oct 2026. Marketing visuals with sample data.

Who should skip it

Verdict

If your best sellers sell out and your collection pages show it, this is a cheap, unglamorous fix that pays for itself the first sale weekend. Under 30 products or rare sell-outs, drag them by hand.

Start the Rankify free trial Our own app affiliate link

Rankify is made by XCO Apps, the team behind StoreVetted; we may earn a commission if you subscribe. App facts and prices are from its Shopify App Store listing, checked 28 Oct 2026.

FAQ

Can Shopify sort out-of-stock products last natively?

No. As of 28 Oct 2026 Shopify has no built-in collection sort that keeps sold-out products last; you need a manual sort, an automation app or an auto-sort app.

Why does the Liquid code fix not work?

Collections are paginated, so Liquid only reorders the products on the current page. Sold-out items still appear first on some pages.

How much does Rankify cost?

$9.50, $19 or $49 a month, each with a 3-day free trial, per its Shopify App Store listing on 28 Oct 2026. Sold-out push-down is on every plan.

Is StoreVetted independent from Rankify?

No. Rankify is made by XCO Apps, the team behind StoreVetted, and we may earn a commission through the link.

More guides