All modulesMagento 2 moduleVersion 1.0.2 · 15 Oct 2026

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.

€120 + VAT · one-off licence, no subscription

Out-of-stock sorted last
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?

Buy the module and we install it for you: free of charge for existing Degriz customers, by time spent for others. Building a new store? Add it to your project in the Konfigurator.

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 purchase we send you the access key by e-mail. Keep it 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? Write to us and we will issue a new one; the old one stops working. [email protected]

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

For existing Degriz customers we install the module free of charge. For other buyers we charge the installation by time spent.

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 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

€120 + VAT

One-off licence for one production installation of Magento, no subscription.

Write to us

For existing Degriz customers we install the module free of charge, for others by time spent. 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] · 040 807 231

Out-of-stock sorted last€120 + 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