Skip to content

How to Sort Products in a Shopify Collection Automatically (2026 Guide)

21 September 202619 min readBy , LeelaRam Technologies
Share

How to sort products in a Shopify collection automatically in 2026: the native settings step by step, where they stop working, and how to automate by sales, stock and margin with SellRank.

If you want to know how to sort products in a Shopify collection automatically, there are two honest answers. The first is Shopify’s built-in sort setting, which takes about thirty seconds and is free. The second is a Shopify collection sort app, which takes a few minutes and can rank by things Shopify’s setting can’t see, such as recent sales, stock, conversion rate and margin. This 2026 guide walks through both step by step, explains exactly where the native approach stops working, and shows how Shopify automatic collection sorting works with SellRank, the app we build at LeelaRam Technologies.

What ‘automatic’ sorting means on Shopify

Two different things get called automatic on Shopify, and it’s worth separating them before you change anything.

  • Automatic membership: a smart collection (Shopify calls these automated collections) decides which products belong to it from conditions such as product type, tag, vendor or price. New products that match join by themselves.
  • Automatic order: the sort setting decides the sequence in which the collection’s products appear. That’s the subject of this guide.

The two are independent. A smart collection can have a manual order, and a manual collection can have an automatic order. When merchants say ‘I want my collection sorted automatically’, they almost always mean the order, and usually they mean ‘by what sells, without me dragging products around’.

Method 1: Shopify’s native collection sort, step by step

Every Shopify collection has a sort setting in the admin. Here’s how to use it.

  • In your Shopify admin, go to Products, then Collections.
  • Click the collection you want to sort.
  • In the Products section of the collection page, find the Sort dropdown.
  • Choose one of the options: Best selling, Product title A–Z, Product title Z–A, Highest price, Lowest price, Newest, Oldest, or Manually.
  • Shopify applies the order immediately. There’s nothing to save for the sort itself, though if you’ve made other changes to the collection, save those.

Exact labels can vary a little as Shopify updates its admin, but the options have been stable for years. Every option except Manually is automatic: Shopify maintains the order as products and sales change.

Which native sort to choose

  • Best selling: the usual default for category pages. Ranks by sales history. Good for stable catalogues with steady demand.
  • Newest: the right choice for a New Arrivals collection. Poor as a default elsewhere, because being new isn’t evidence anyone wants the product.
  • Highest price or Lowest price: useful for a collection whose whole purpose is browsing by budget. Poor as a default, because low to high fills the top with your cheapest products and high to low can scare off a browsing shopper.
  • Product title A–Z or Z–A: only for catalogues where the name carries the meaning, such as part numbers, sizes or editions.
  • Oldest: rarely useful, occasionally right for archives or heritage ranges.
  • Manually: not automatic at all. You drag products into order yourself.

Our post on every Shopify sort option covers the specific failure mode of each in more detail.

What smart collections can and can’t do for sorting

Smart collections are often the first thing merchants reach for when they want automation, so it’s worth being precise about what they offer. A smart collection’s conditions decide membership. You can build a collection of every product tagged autumn, every product from one vendor, or every product under a price, and new products that match will join it automatically. That’s genuinely useful, and SellRank works on top of it without any conflict.

What smart collection conditions can’t do is rank. Once a product is in the collection, its position is still decided by the same sort dropdown as any other collection, with the same options. A common workaround is to create several narrow smart collections, such as In-stock Rings and Out-of-stock Rings, and link them separately. It works, but it multiplies the collections you maintain and splits one shopping journey into several pages. A ranking that handles stock inside one collection is usually the better answer.

Can you set a default sort for all Shopify collections at once?

Not natively. Each collection has its own sort setting, and new collections start with the default Shopify applies. A store with dozens of collections has to set each one individually, and if you later decide Best selling was the wrong choice, you have to change them all again. SellRank’s global rule, included in the Scale and Max plans, solves this by applying one strategy to every collection that doesn’t have its own rule.

Where Shopify’s automatic sorting stops working

The native sorts are free and dependable, and for a small store with steady demand they may be all you need. They have five limits that start to bite as a store grows.

  • No time window. Best selling ranks by sales history, so a product that sold well over a long period can outrank this week’s breakout for a long time. You can’t say ‘best selling over the last 7 days’.
  • No stock awareness. None of the native sorts know about inventory. The best sellers are the most likely to sell out, and they keep their top positions when they do.
  • No margin, conversion or engagement. Shopify stores cost per item, but no sort option uses it. Views, add-to-carts and conversion rate aren’t sort options either.
  • One rule per page. The first row and the tail of a collection get the same logic. You can’t say ‘the first 20% should be in-stock trending products and the rest can follow revenue’.
  • No override without losing automation. The moment you drag one product in an automatically sorted collection, Shopify switches it to Manual and the automatic logic is gone.

There’s a sixth, quieter limit: nothing records which sort was live when, so you can’t tell whether changing a collection’s sort helped. You’d have to reconstruct it from memory and Shopify Analytics, and hope nobody else changed anything in the meantime. For a store making merchandising decisions every week, that missing record is the difference between learning from each change and repeating the same guesses.

How to push out-of-stock products to the bottom in Shopify

This is one of the most common sorting questions merchants ask, so it deserves its own answer. Shopify’s collection sort options don’t move sold-out products down. Your native options are:

  • Hide them. You can exclude out-of-stock products from a smart collection with an inventory condition, or use theme settings where your theme offers them. This removes them from the page entirely, losing restock sign-ups and the product’s visibility for shoppers who come back for it.
  • Move them by hand. Switch the collection to Manual and drag sold-out products to the bottom. It works until stock changes, which is daily or hourly.
  • Use an app that writes the order for you.

In SellRank, a single toggle parks every product that isn’t available to buy at the end of the collection. Because available to buy includes made-to-order and untracked products, those are never buried by mistake. You can go further with a condition on the first slot, such as inventory units greater than zero, so the first row is always physical stock you can ship today. We explain why this matters so much in our post on out-of-stock products at the top of collections.

How to sort a Shopify collection by best sellers over a recent period

Shopify’s Best selling sort doesn’t let you set a period. To sort a Shopify collection by best sellers over, say, the last 7 or 30 days, you need an app that reads orders by date and writes the order back to the collection. SellRank offers Orders (7 days), Orders (30 days), Revenue (7 days) and Revenue (30 days) as strategies, all read directly from your Shopify orders, so they match your admin exactly. Choose 7 days when the collection sells enough for a week of data to be meaningful, and 30 days when it doesn’t.

How to sort a Shopify collection by inventory

Shopify sort by inventory isn’t a native option either. There are several things you might mean by it, and SellRank covers each:

  • Most stock first: the Inventory units strategy ranks by units on hand. Useful for pushing products you hold plenty of.
  • Selling fastest relative to stock: Sell-through % (30 days) ranks by units sold as a share of units sold plus units on hand.
  • Running out soonest, or overstocked: Days of stock cover estimates how long current stock will last at the last 30 days’ rate of sale. Sort ascending to see what’s about to run out, descending to find overstock.
  • Clearance: the Clearance push preset blends discount, days of stock cover and 30-day views to put discounted, overstocked products that still get attention first.

Sell-through and stock cover read zero for products that don’t track inventory, so made-to-order items never look like overstock.

How to sort a Shopify collection by conversion rate or views

Shopify doesn’t record product views or add-to-carts in a form its collection sort can use, so neither is a native option. SellRank’s pixel counts both per product per day, which makes four engagement strategies available: Product views and Add to carts, each over 7 or 30 days. Conversion % (30 days) divides orders by views, surfacing the products that turn attention into purchases. To keep that fair, conversion reads zero below five views in the window, so a product with two views and one order can’t claim a 50% rate and leap to the top. Our post on ranking Shopify products by conversion rate explains when to use it and how to blend it with volume.

Before you automate: a ten-minute audit of your current order

It’s worth knowing what you’re replacing before you replace it. Open your busiest collection on a phone and check these five things. You don’t need any tools beyond Shopify Analytics.

  • Count the products visible before the first scroll. That’s your real first row, and it’s the part of the page that matters most.
  • Tap each of those products. Is any of them sold out, or sold out in the most common sizes or variants?
  • Look up each first-row product’s sales for the last 30 days in Shopify Analytics. Is any of them a product that’s barely selling now?
  • Scroll to the second and third screens. Is there a product there that you know is selling well this month?
  • Check when the newest product in the collection was added, and where it currently appears.

If any of those checks makes you wince, the current sort is costing you, and automating it is worth the five minutes. If everything looks right, your native sort may be doing its job, and that’s a perfectly good outcome.

Method 2: Shopify automatic collection sorting with SellRank, step by step

Here’s the full process, from install to a collection that sorts itself by what sells. It takes about five minutes the first time. The SellRank setup guide covers the same steps screen by screen.

Step 1: Install SellRank

Install SellRank from the Shopify App Store. Shopify shows the permissions before you approve: reading orders, inventory and store activity so the app can rank by real demand; editing the order of products in collections, which is how the sort is applied; and installing an engagement pixel that counts product views and add-to-carts. SellRank doesn’t touch customer data, and it doesn’t edit your theme.

Step 2: Open the app and let the pixel install

The first time you open SellRank, its engagement pixel installs through Shopify’s Web Pixels API and starts counting product views and add-to-carts per product per day. It stores aggregates only. There’s nothing to configure and nothing to paste into your theme. Orders and revenue work immediately because they come from your existing Shopify orders; view and add-to-cart based rankings sharpen as the pixel gathers data. On Scale and Max you can connect a GA4 property to import up to 90 days of engagement history straight away.

Step 3: Create a smart sort and choose how to rank

Click Create smart sort and choose the collection. You have three ways to describe the order:

  • One metric: pick any of 19 strategies from the dropdown, such as Revenue (30 days), Orders (7 days), Conversion % (30 days), Sell-through, Newest first or Review rating.
  • A Balanced score: blend several metrics into one 0 to 100 score with weights, or start from a preset such as Trending, Revenue driver, Fresh + popular, Clearance push, Customer favorites or, on Scale and Max, Profit maximizer.
  • Percentage slots: claim slices of the page for different logic. For example, the first 20% in stock and ranked by Trending, the next 20% most viewed, and everything else by revenue.

The default composition when you create a smart sort is exactly that slot example, and it’s a sensible starting point for most category pages.

Step 4: Add conditions and park out-of-stock products

Conditions narrow which products qualify for each slot. Common ones are in stock only, a price range, a tag, a vendor, a product type, or created within the last so many days. All conditions in a slot must be true for a product to qualify. Then turn on the toggle that parks out-of-stock products at the end of the collection.

Step 5: Preview the exact order

The live preview shows the collection exactly as it will appear, product by product. Each tile carries a badge explaining its position: its score, the slot it filled, or that it was pinned. Read the first screen as a shopper on a phone would. Are those the products you’d want a paid visitor to see first?

Step 6: Pin, demote or drag where you disagree

Automation is a starting point, not a verdict. Pin the product from this week’s campaign to the top. Demote a product being discontinued. Drag a tile to where it belongs, or set an exact position. These choices override the automatic order and are remembered every time the collection is recomputed, so your pins don’t disappear the next day.

Step 7: Sync to Shopify

Click Sync now. SellRank switches the collection to Manual sort in Shopify and pushes the previewed order into it. It’s live on the storefront within seconds. Then the app reads the order back from Shopify and confirms every position matches what you previewed. The move planner that turns an order into Shopify writes is verified against 78,240 test cases before every release, including collections that contain products the computed order didn’t expect.

A note on why the collection switches to Manual: Shopify stops re-sorting a collection once it’s on Manual, which is exactly what you want. SellRank takes over the sorting, and the order stays fresh as long as the smart sort is enabled. Because the order is written into Shopify rather than applied in the browser, the page is correct in the HTML Shopify serves, with no storefront script, no flicker and nothing for search engines to miss.

Step 8: Keep it running and measure what it did

Once a collection is synced, three features keep it honest over time. They’re available from the Grow plan.

  • Versions and performance: every published configuration is a version, and daily views, add-to-carts, orders and revenue are attributed to whichever version was live. Compare versions side by side and keep what works.
  • Sort-health monitoring: an hourly check compares the live order in Shopify with what SellRank pushed. If a teammate, a bulk edit or another app scrambles it, the collection is flagged. On Scale and Max, drift alerts come with one-click re-sync.
  • Drafts and schedules: edit an existing smart sort and it becomes a draft, leaving the live order untouched. Give it a go-live date to publish automatically, and a revert date to bring the previous order back when a campaign ends.

Example: automating a 90-product collection

Illustrative example. A homeware store has a 90-product Candles collection on Shopify’s Best selling sort. Two of its long-time best sellers are sold out and still sit in positions one and three. A new autumn range launched two weeks ago and appears on page two.

  • They create a smart sort on Candles with the default composition and turn on out-of-stock parking.
  • On 90 products, the first 20% slot is 18 products. The preview shows in-stock candles ranked by the Trending blend, which now includes several of the new autumn range because they’ve been getting views and add-to-carts all fortnight.
  • The two sold-out best sellers have moved to the end of the collection, where they’ll wait until restock and then qualify for the hero zone again.
  • They pin one autumn candle that’s featured in the weekend email.
  • They sync. The order is live and verified. A week later, the performance view shows the new version’s views, add-to-carts and orders beside the week before.

Nothing in that example needed code, a theme edit or a developer, and every step can be undone by restoring the previous version. The same store could now apply a similar composition to its Diffusers and Gift Sets collections, adjusting slot sizes to suit each one.

A checklist for the week after your first sync

  • Day one: open the collection on your phone and confirm the first screen matches the preview. SellRank has already verified every position, but seeing it on the storefront is how the team builds trust in the tool.
  • Day one: leave everything else on that collection alone for the week, so the new order’s effect isn’t mixed up with other changes.
  • Mid-week: glance at the SellRank dashboard for any drift flag. If a teammate or another app has changed the order, you’ll see it there.
  • Day seven: compare the week with the week before, using the performance view on Grow and above, or Shopify Analytics on the free plan. Look at views, add-to-carts and orders for the collection, and note anything unusual such as a campaign or a traffic spike.
  • Day seven: decide. Keep the order, adjust one thing and publish it as a new version, or restore the old version.

Automatic sorting recipes for common collection types

The default composition suits most core categories, but some collections have a specific job. These starting points can be built in SellRank in a minute each. They’re defaults to test, not rules.

  • Category pages (Dresses, Rings, Serums): first 20% in stock and ranked by Trending, next 20% most viewed over 30 days, everything else by 30-day revenue, out-of-stock parked.
  • New Arrivals: first 25% created within 14 days and ranked by Fresh + popular, everything else newest first.
  • Best Sellers: 30-day orders with an in-stock condition, so the page never shows a sold-out best seller.
  • Sale: first 20% with discount of at least 30% and stock above zero, ranked by Clearance push; everything else by 7-day orders.
  • Gifts: two price-banded slots, each ranked by Customer favorites, so shoppers on both budgets see relevant products early.
  • Home page featured collection: a short collection with two or three pins, and 30-day revenue filling the rest.

Our guide to percentage-slot merchandising works through complete compositions for fashion, beauty, jewellery, home and sale collections if you want to go deeper.

How to automate a sale order that starts and ends on time

Campaigns are where manual sorting costs the most, because the order has to change at a specific moment and change back afterwards. Here’s the SellRank way, available from the Grow plan.

  • A few days before the sale, open the collection’s smart sort and edit it. Your edits become a draft; the live order doesn’t change.
  • Build the sale composition: for example, a Clearance push slot at the top and 7-day orders below it. Pin the hero sale products.
  • Set a go-live date and time for the moment the sale starts. The draft publishes and syncs itself then, even if nobody is awake.
  • Set a revert date for when the sale ends. The previous order comes back automatically.
  • After the sale, open the performance view to see how the sale version performed against the regular one.

Our collection sorting playbook for sale season covers the timing in more depth.

How often should Shopify collections be re-sorted?

It depends on how fast your store moves. The native automatic sorts update continuously, but they’re updating the wrong signals. For a performance-based order, most stores are well served by the order following demand over a 7-day or 30-day window, with sold-out products leaving the top as soon as they sell out. During a sale or launch, when stock and demand move fast, it helps to check the collection more often. SellRank’s hourly health checks tell you if the order you published has been disturbed, and drafts with scheduled go-live mean campaign orders change exactly when you intend.

Does automatic sorting affect Shopify SEO?

Not negatively, if it’s done server-side. Search engines index the HTML Shopify serves, and a collection’s order is part of that HTML. Shopify’s native sorts and SellRank both change the order Shopify stores, so crawlers see the same order shoppers do. Methods that reorder products in the browser with JavaScript can show crawlers a different order from shoppers and add layout shift, which is worth avoiding. Changing the order of a collection doesn’t change its URL, title, description or content, so there’s no risk to its rankings from the reorder itself.

Troubleshooting automatic sorting

  • My manual order disappeared. Switching a collection to any automatic sort and back to Manual doesn’t restore the old arrangement. With SellRank, every published order is a version you can restore.
  • My sort keeps changing back. Something else is writing to the collection, such as a teammate, another app or a bulk operation. SellRank’s health check will flag the drift; find what else has collection permissions.
  • A new product doesn’t appear in the order I expected. If it has no views or sales yet, it ties with other zero-data products. Use Newest first or the Fresh + popular blend in a slot if new products should be visible.
  • Conversion ranking looks odd. SellRank reads conversion as zero below five views in the window, so thinly viewed products don’t leap to the top on one lucky order. Give the pixel time to gather views, or blend conversion with views.
  • Profit sorting shows zeros. Profit and margin need cost per item in Shopify (Products, then Pricing, then Cost per item). Where it’s missing, the metric reads zero rather than a guess.

What it costs

Shopify’s native sort is free. SellRank has a free plan with no end date that covers one collection, with the full editor, live preview, pins, demotions and drag-and-drop, and one live sync. Grow is $29 a month for 15 collections with unlimited syncs, drafts, schedules, versions, performance analytics and sort-health monitoring. Scale is $69 a month for 75 collections and adds the global rule, GA4 backfill, profit metrics and drift alerts with one-click re-sync. Max is $249 a month for unlimited collections with priority support. Paid plans start with a 7-day free trial, yearly billing gives two months free, and everything is billed through Shopify.

Native sort or SellRank: a quick decision guide

  • Use Shopify’s native sort if your collections are small, demand is stable, best sellers rarely sell out and you don’t need to measure the effect of changes.
  • Use SellRank if you want to sort by recent sales, push out-of-stock products to the bottom, rank by conversion, stock or margin, compose the page in slots, keep pins while automating, schedule campaign orders, or see what each order earned.

Our comparison of SellRank, Shopify best selling and manual sorting goes through the choice criterion by criterion.

How to sort products in a Shopify collection automatically, starting today

The quickest way to see whether automatic, performance-based sorting helps your store is to try it on your busiest collection. Install SellRank, accept the default composition, turn on out-of-stock parking, read the preview and sync. It takes about five minutes, costs nothing on the free plan, and changes nothing in your theme. If the preview shows the same products you already have in your first row, you’ve learned your current order is sound. If it doesn’t, you’ve found the gap. Plans and the install link are on the SellRank product page.

Sumit Chavda

Written by

Founder, LeelaRam Technologies

Founded LeelaRam Technologies after building and running e-commerce technology for a live jewellery brand. Builds SellRank, and writes here about Shopify, merchandising and software that keeps working.

LinkedIn Portfolio All articlesAbout the company

Common questions

How do I sort products in a Shopify collection automatically?+

In the Shopify admin, open Products, then Collections, choose the collection and pick a sort option such as Best selling, Newest or Price. To sort by recent sales, stock, conversion or margin, use an app like SellRank, which ranks products by live performance and writes the order into Shopify.

Can Shopify sort a collection by best sellers in the last 30 days?+

Not natively. Shopify’s Best selling sort uses sales history without a date window you can set. SellRank offers Orders and Revenue over 7 or 30 days, read directly from your Shopify orders, and writes the resulting order into the collection’s manual sort.

How do I move sold-out products to the bottom of a Shopify collection?+

Shopify’s sort options don’t account for stock, so you either hide sold-out products, move them by hand, or use an app. SellRank has a toggle that parks every product not available to buy at the end, and treats made-to-order items as buyable so they aren’t buried.

Why did my Shopify collection switch to manual sort?+

Dragging a product in an automatically sorted collection switches it to Manual. Apps that write collection order, including SellRank, also switch collections to Manual so Shopify stops re-sorting them. With SellRank, the app then maintains the order for you, and every published order is kept as a version you can restore.

Can I set one sort order for all my Shopify collections?+

Not natively; each collection has its own sort setting. SellRank’s global rule, on the Scale and Max plans, applies one strategy to every collection without its own smart sort. Collection-specific rules always take priority over the global rule, so you can automate the long tail and still curate your key pages.

Does automatic collection sorting slow down a Shopify store?+

Not when the order is written into Shopify. Native sorts and SellRank both change the stored order, so the page is correct in its HTML and nothing extra runs in the browser. Apps that reorder products with JavaScript after the page loads can add script weight and layout shift.

Is there a free app to sort Shopify collections automatically?+

SellRank has a permanently free plan for one collection, with the full editor, live preview, pins, demotions, drag-and-drop and one live sync. That’s enough to see a performance-based order on your own storefront before choosing a paid plan, and there’s no end date on it.

Related

Put this to work on your store

SellRank orders any Shopify collection by real demand — free to try on one collection, no code.

See the product