Keep sold-out products last in collections (without hiding them)
Show sold-out products last in Shopify collections: no native sort exists, so use the manual routine, Search & Discovery settings, or filters instead.
InventoryX is in development and not available today. ClearStock is the live Shopify app.
A customer opens your bestsellers collection and the top row is a wall of "Sold out" badges. On a hiking-socks store with a 128-product trail collection, the first six cards on launch day were the six fastest sellers — and two weeks later all six were gone, still sitting in positions one through six. Every visitor that week had to scroll past a row of dead cards to reach anything buyable. Sorting those products to the bottom is the obvious fix, and the first thing to know is that Shopify collections have no native "in stock first" sort to do it for you.
What you do have, as of November 2026, is four working options with very different maintenance costs. Here's where each fits.
Where sold-out-last already happens automatically
Before touching collections, it helps to know that storefront search already behaves the way you want. Shopify's Search & Discovery documentation states that sold-out products are listed at the end of search results so customers find purchasable items first, that product boosts only lift a product while it's available for sale, and that a dedicated setting controls how unavailable products appear: displayed, hidden, or placed last, applying to both search and predictive search (Shopify Help Center, "Modifying search with Shopify Search & Discovery," accessed November 2026). By default, unavailable products already show after all other matching results.
The gap is collections. The documented sort options for a collection are: most relevant (the default for new collections), best selling, product title A–Z or Z–A, price, date created, and manual (Shopify Help Center, "Editing collection details and layout," accessed November 2026). No availability option exists, and automated collections recompute their membership without any regard for stock state. So the rest of this piece is about closing that gap without crossing into hiding, which is a different tool with different trade-offs.
Option 1: the manual sort routine
Manual sorting is the only native way to control collection position, and it's built for exactly this job. On a collection in your admin, set the Default sort to Manually, then select the sold-out products and use Move > To the end — or drag them down. You can also move a restocked product straight back to a specific position with Move > To position. The whole interaction takes seconds per product, and Sidekick can even do it from a prompt like "move the sold-out sizes to the end of my collection" (Shopify Help Center, as of November 2026).
The catch is decay. A manual sort is a snapshot: it's correct on the day you do it and drifts from there, because sold-out sets change every week. The version that survives is a routine, not a cleanup. Here's a worked example of the cost, using the hiking-socks collection:
- 128 products in the collection, sorted manually, reviewed every Monday.
- Week to Monday: 14 products hit zero available, 9 restocked.
- The pass: filter the collection by products with zero available (a saved view gets you there in one click), select the 14, Move > To the end, then drag the 9 restocked ones back toward the top.
- Time cost: roughly 10 minutes a week, or about 43 minutes a month — call it an estimated hour with coffee.
For a flagship collection, that's cheap. For thirty collections, it isn't, and that's the honest limit of manual sorting: use it where the collection earns its keep.
Option 2: best-selling sort, the zero-maintenance approximation
Switch the collection's sort to Best selling and sold-out products sink on their own — not because Shopify knows they're sold out, but because a product with no stock stops accumulating orders, while in-stock competitors keep adding to their all-time totals. It's the only native sort that drifts in the right direction without you touching anything.
It's also slow and imprecise. A product that sold 300 units before selling out can outrank everything in the collection for weeks, because "best selling" is all-time, not recent. On a young collection, products with no sales yet sort newest-to-oldest regardless of stock. Treat this as a background correction, not a fix: if you can't maintain a manual sort, best-selling is better than nothing, but don't expect the top row to clean itself up quickly.
Option 3: give buyers an availability filter instead
A different philosophy: rather than pre-sorting the collection, let in-stock shoppers filter to it. The Search & Discovery app's custom filters apply to collection pages as well as search, and Shopify's storefront-filter documentation specifically recommends them over raw product tags for letting customers narrow results (Shopify Help Center, accessed November 2026). An "Availability: in stock" filter on your main collections takes one setup session and never decays — it's the lowest-maintenance answer to the sold-out-wall problem, and it composes with whatever sort you run.
The trade-off: a filter only helps shoppers who use it. The first screenload of the collection still shows whatever your sort puts there. Filters reduce the damage of sold-out cards in row one; they don't remove it.
Option 4: theme code or an app
Two developer-adjacent routes exist for stores that want true in-stock-first ordering with no manual work. A theme developer can reorder a collection's products client-side — sorting by variant availability in Liquid before render — which is store-specific work with a maintenance cost every time the theme updates. And the App Store has apps that automate merchandising by stock state; Shopify's own hiding documentation points to the inventory-app category for stock-aware automation generally. Two honest cautions before adopting either: test any theme customization against mobile, where most collection browsing happens, and check that any app's approach keeps sold-out pages indexed rather than removing them, since some stock-automation apps hide or unpublish as a side effect.
Choosing between them
| Option | Setup | Ongoing cost | What it actually does | Best for |
|---|---|---|---|---|
| Manual sort routine | Minutes | ~10 min/week per collection (estimated) | Sold-out products genuinely last, restocks re-promoted | One to five flagship collections |
| Best-selling sort | One click | None | Slow, all-time-based sinking of dead products | Collections you can't maintain |
| Availability filter | One session | None | Lets shoppers self-select in-stock only | Every collection, alongside any sort |
| Theme code / app | Days | Developer upkeep | True automatic in-stock-first ordering | Large catalogs with developer support |
For most stores the honest answer is a combination: an availability filter everywhere, plus a weekly manual pass on the handful of collections that drive real revenue, with best-selling sort as the fallback on everything else.
When sorting is the wrong tool
Sorting to the bottom keeps the product visible and its page live — it just moves it out of the first scroll. That's what you want when the sellout is temporary and the product will return. When the product is gone for the season, gone for good, or embarrassing to show at zero, hiding is the correct operation: collections with an "Inventory stock is greater than 0" condition drop sold-out products automatically and readmit them on restock (Shopify Help Center, "Hiding out of stock products," as of November 2026). The hiding-versus-keeping decision — SEO effects, waitlists, when removal beats demotion — is covered properly in the guide to hiding sold-out products on Shopify.
And the cheapest sort of all is not needing one: fewer sold-out weeks in your bestsellers. That's an inventory problem, not a merchandising one — the low-stock alerts guide covers what you get natively (saved views and Flow, but no built-in email alert as of October 2026) and what alerting has to look like to actually prevent sellouts.
Common questions
Does Shopify have an "in stock first" sort for collections? No. As of November 2026, the documented collection sort options are most relevant, best selling, title, price, date created, and manual — availability isn't one of them. Sold-out-last behavior is native only in storefront search and predictive search, where unavailable products already display after available ones by default.
How do I move sold-out products to the bottom of a collection? Set the collection's Default sort to Manually, select the sold-out products, and use Move > To the end. Expect to repeat it weekly, since sold-out sets change constantly. For the reverse move, Move > To position returns a restocked product to a specific slot in the same session.
Are sold-out products already last in Shopify search results? Yes, by default. Shopify's Search & Discovery documentation states that unavailable products display after all other matching results in both search and predictive search, with settings to hide them instead if you prefer. Product boosts also stop applying once a product sells out.
Do sold-out products hurt my SEO if I sort them last? Sorting only changes position inside the collection — the product page stays published and indexed exactly as before. Hiding via collection conditions also keeps pages live, while unpublishing removes them from search engines. If SEO during a sellout is your concern, sorting is the conservative choice.
Why do sold-out products show first in my collection at all? Because the collection's sort doesn't consider stock. On a "most relevant" or "best selling" sort, yesterday's heroes keep yesterday's positions — a bestseller that sold 300 units can outrank everything for weeks after hitting zero. Only a manual sort (or an availability filter) reflects the current state.
Next step
Pick your top three collections and run one manual sort session this week: switch Default sort to Manually, build the saved view that shows zero-available products, and time the pass — if it lands near the ten-minute mark, put it on the Monday calendar and read the Shopify collections guide for the rest of the maintenance rhythm. For everything beyond the top three, add the availability filter and let shoppers do the sorting themselves; if a product's sellout is turning into captured demand, the waitlist guide shows how to collect it instead of just burying the listing.