sort a collection by availability of product

New Member
1 0 0

Hi, I would like all items in collection that are active to show but those without stock to show at bottom of page, ie sort by availability? The smart collection doesn't work as I have lots of other conditions so have to be by "any condition". Is there a way to do this automatically not manually? Cheers

Shopify Partner
3123 194 575

You will need an app for this type of specific sorting

Usemechanics  has a premade task for that 

and other automation tasks you can then leveragle


Merchants that need a mechanic script customized can contact me at

Problem Solved? ✔️Accept and ? Like the solution so you can help others.
Buy me a coffee ☕ or donate to
Confused? Busy? Buy a custom solution

Hey, you seem like perfect fit for our new application that would go-live in few weeks. 

We are developing an analytics solution with build-in AI machine learning for estimating demand. You can see in our portal not only stock levels for all products/variants but the expected number of days (based on predicted demand in the future) in which products on stock will be completely sold off. 

If you are interested, apply for the private beta here: 

Try next-generation Business intelligence & AI solution for Shopify

Hi @rabbott,

Our app, Push Down & Hide Out of Stock, does exactly what you want!

You can move out-of-stock products to the bottom of the collection with our app.

It has an easy setup, and all processes are automatic. And also it works in real-time!

If you have any questions, please don't hesitate to reach out to us at

Co-Founder / Developer at: merchbees
Merchbees Low Stock Alert - Keep track of your low stock items by email and slack
Merchbees Inventory Value - Know your inventory value and quantity in real-time
Push Down & Hide Out of Stock - Move out of stock products to the bottom of the collection to improve SEO & hide/ unhide automatically

Hi @rabbott 

would you mind checking our app Nada: Sort & Hide Out Of Stock

The app is automatically sorting collections in real-time, so the sold-out products are always at the end of the collection and back when in stock again. You can try it for free to check that it really works smoothly.

Try it for free for 7 days and check if it helps to solve your problem.


Martin Zima