All modulesMagento 2 module

Out-of-stock sorted last

In categories and search, shoppers see what they can buy right now first. Sold-out products drop to the end of the list by themselves.

€90 + VAT · one-off licence, installation optional

www.degriz.eu
Out-of-stock products in a category slide to the end of the list by themselves
About the module

What it does.

"A customer opens a category, the first five products are sold out, and they think we have nothing and leave." Moving products around by hand is a job nobody can keep up with.

What it looks like in practice

A shopper opens a category or searches for a product. At the top of the list are the products you have in stock, ready to add to the cart. Sold-out products are still listed, but at the end. When your supplier delivers new stock, the product returns among the available ones by itself and you do nothing.

What changes

  • Available comes first. In-stock products come before sold-out ones, so the shopper sees at once what they can buy.
  • It works in search too. The ordering applies to search results and to category product lists.
  • Your order stays. Within each of the two groups the order stays as you set it (position or search relevance).
  • No manual work. The module has no settings; when a product is back in stock it returns among the available ones by itself.

Who it is for

For stores where products are often sold out: with suppliers, seasonal ranges or limited batches. It pairs well with the back-in-stock notification module, which adds a sign-up to the sold-out product.

How you set it up

There is nothing to set up in the admin. We install the module and it works; it takes stock into account every time a list loads, with the default sort (by position).

Good to know

  • If the customer picks another sort order, for example by price, the module does not change it.
  • Sold-out products appear in the list only if showing out-of-stock products is switched on in your inventory settings.
  • It works in the back end and on any theme, Hyvä included. If another module changes sorting, a test is needed.

Want it in your store?

Install it yourself or choose installation and configuration when you order. Building a new store? Add it to your project in the Konfigurator.

Screens

Take a look at every step.

www.degriz.eu
The start of the category: products that can be bought come first
www.degriz.eu
The end of the category: sold-out products are last, marked Out of stock
www.degriz.eu
A sold-out product stays reachable, the shopper can leave an address for a back-in-stock notice
www.degriz.eu
Settings: Inventory, Display Out of Stock Products
User guide

See how it works, step by step.

Our guide centre shows the settings and the everyday work with this module, with real screenshots.

Installation

How to install it.

We deliver the module from our own repository, installed with Composer. We send you the user name and access key for the repository after purchase. If you prefer, we install and set it up for you.

In the root of the Magento 2 store run the commands (replace UPORABNIK and DOSTOPNI_KLJUC with the user name and access key you received):

composer config repositories.degriz composer https://www.degriz.net/konfigurator/composer/packages/composer config --auth http-basic.www.degriz.net UPORABNIK DOSTOPNI_KLJUCcomposer require degriznet/m2_outofstocklastphp bin/magento module:enable Magelan_Outofstocklastphp bin/magento setup:upgradephp bin/magento setup:di:compilephp bin/magento setup:static-content:deploy -fphp bin/magento cache:flush

Where do I get the user name and the access key?

After the payment we e-mail you a link to create the access key. Keep the key safe: for security it is shown only once and we do not keep it in readable form. The user name (your project code) and all the commands, ready to copy, are in your account under My account > Module licences.

Lost the key? Create a new one in your account under Module licences; the old one stops working.

Technical details

Compatibility.

Just the facts.

Code
degriz_stocksort
Platform
Magento 2
Licence
One-off
Change log

Version 1.0.1 · 24 Sep 2026

  • Fix: products no longer repeat across listing pages (the same product on the first and second page and another one nowhere).
  • Search: products in stock come first and the relevance ranking is kept.

Version 1.0.0 · 17 Jul 2026

  • First release: out-of-stock products are placed last in product listings.
After purchase

You are not left alone.

We develop and maintain the module ourselves, so you write to the people who know it line by line.

Installation

Installation and configuration are optional: choose them when you order and the price is added to the order (+ VAT). If more time is needed, we bill the rest separately.

Support

A bug that repeats on a clean Magento with the Luma theme we fix free of charge. Settings, customisations and other themes by time spent.

Updates

The licence includes 12 months of free updates for the Magento versions on the supported list.

We agree on a date after reviewing the request. User guides in the guide centre

Out-of-stock sorted last

€90 + VAT

One-off licence for one store, no subscription. Installation and configuration are optional.

After payment you get the licence and access to our private repository: immediately with a card or PayPal, with a bank transfer (UPN) as soon as we receive the payment. 12 months of free updates are included.

Write to us

Install it yourself by following the guide, or choose installation and configuration above. If more time is needed, we bill the rest separately. We agree on a date after reviewing the request.

Anže Voh, Degriz

Questions about this module?

Write to us and we will answer personally.

[email protected] · +386 40 807 231

Out-of-stock sorted last€90 + VATAdd to cart

Online store configurator

Redesigning your store or building a new one?

Put your own quote together in the configurator and see the price straight away. A few minutes, no obligation, no meeting needed.

  • Price straight away
  • No obligation
  • Straight to the developer
Open the configurator

Free and with no obligation

We use cookies for the proper functioning of the site, visit analytics and showing ads tailored to your interests. Read more in our privacy policy. By clicking "Accept all" you agree to the use of all cookies.