How can I sort sold out products to the bottom or last of the products in the minion theme

Topic summary

A merchant wants to move sold-out products to the bottom of product listings in the Minion theme.

Three solutions are provided:

  • Manual sorting: Set collections to manual sort order in Shopify admin and manually reorder products (time-consuming)
  • Theme customization: Modify the theme’s Liquid code to automatically sort products by availability in collection loops
  • Automation app: Use apps like Mechanic to automatically move out-of-stock products to the end of collections

Technical implementation:

A code snippet is shared showing how to sort products using Liquid:

{% assign sorted_products = collection.products | sort: 'available' %}
{% for product in sorted_products %}

Links to three Mechanic automation tasks are provided for different sorting approaches (by inventory levels, product properties, and moving out-of-stock items).

The responder offers paid customization services for implementing this feature and requests additional context (store URL, theme name) if the merchant needs further assistance.

Summarized with AI on November 7. AI used: claude-sonnet-4-5-20250929.

I want to sort sold out products to bottom

Hi @kareemkiks :waving

Merchants needing to sort sold out products to the bottom of collections either need to:

  • if manual collections set the sort order to manual in the admin then hand sort the products :nauseated_face:
  • customize the theme to change the collections sort order in liquid for the collections product loop; implemenation will vary greatly between themes
  • Or for manual collections use an app , such as mechanic, to send sold out products to the end of a collections list.

Example liquid code for product loops in a collection

{% assign sorted_products = collection.products | sort: 'available' %}
..
... 
{% for product in sorted_products %}

Example mechanic sorting automation tasks:

If you need this customization then contact me by my email for services.
Contact info in forum signature.
ALWAYS please provide context, examples: store url, theme name, post url(s) , or any further detail in ALL correspondence.