Improved Sorting for Magento 2

The extension is an effective tool for managing the sequence of products sorting on category pages, search results pages and catalog widgets.

With the help of flexible ranging factors, you can easily determine if products should be shown at the product list end or beginning.

  • Manage products sorting globally
  • Push out-of-stock and without image products to the end
  • Promote products (seasonal , high margin or with a discount)
  • Manage sorting options available to clients
  • Manage products sorting in widgets
  • Change default sorting for Catalog and Search Results

Free Installation

We will install the extension in your store and configure for your requirements

free installation

Extension Demos
Pick a quick tutorial to learn about various aspects of this extension

The better products on the list top meet clients’ expectations, the higher the store sales are.

At the same time, if products at the list beginning are not interesting to clients, most probably these clients will not keep on looking at the rest of store products.

Improved Sorting extension performs products sorting on catalog meeting the key criteria of the best products choosing and internal rules as well (sale, brand, the latest)

The extension add new index, that contains weights for each ranking factor - product. When magento add sort order to products collection (plugin), we join this index and sort products by weight (or sum of weights).

If sortable option is an attribute, we use native magento sorting logic.

The extension uses only plugins for improve sort order logic. No Rewrites (preferences) or observers.

Also using Dependency Injection, you can implement custom ranking logic (simple class with weight calculation for product id)

Feature Highlights

New Sorting Options

There is a possibility for a client to change product sorting on catalog. The extension allows you to manage sorting options that are available to a customer on the front-end. You can also add an unlimited number of sorting options, as well as to determine the default sorting option for the product list or search results page.

Sort By Attribute or Ranking Factors

You can provide your customers with possibility to sort products using any attribute or any set of ranging factors.

Depending on configuration, the extension can apply ranging rules both in series (Sort by …, then sort by …) and as a sum of factors weights.

Default Sorting Option

Default sorting is critically important, as long as, the more relevant products are at the list beginning, the better the store sales are. That is a reason for sufficiency to place “the best” products at the list beginning.

You can create the best product list using different ranging rules combinations, for example, the latest added products (within last 30 days) and, in addition, bestsellers with the best rating.

Frequently used sorting options:

  • Featured
  • Sort by Biggest Saving
  • Cheapest
  • Most Expensive
  • Top Rated
  • Sort by Reviews Count
  • Sort by Now In Wishlist
  • Sort by Most Viewed
  • Sort by Options
  • Sort by Created Date
  • Sort by Price
  • Sort by Size
  • Sort by Position
  • Sort by Newest
  • Sort by Date
  • Sort by Reviews
  • Sort by Discount
  • Sort by Stock Availability
  • Sort by Name
  • Sort by SKU
  • Sort by Best Seller
  • Sort by Rating
  • Sort by Category
  • Sort by Popularity

Ranking Factors

Improved Sorting extension allows you to effectively manage the products sorting on catalog. You can set rules for sorting of different product groups. In addition, you can manage sorting options that are available to store clients.

To set up catalog sorting, use the rules for ranging factors determination(sorting rules).

The extension includes a wide set of configurable rules, on basis of which you can effectively range products according to different criteria.

Adding Date Factor

Usage of the Date Factor allows you to sort products in accordance with the date the products were added to your store (magento 2 sort products by newest). You can set time frames of a rule being applied.

For example, you can display products that were added during the last week first, and ,then to show other products with all the other rules after them.

Attribute Factor

Attribute Ranking Factor allows you to manage product position on the list, basing on the attribute values or attributes set.

For example, you can move seasonal products to the top of the list or temporarily boost certain brands to a higher position.

Product Rating Factor

The Product Rating Factor ranges the products on the basis of number of reviews and product rating (magento 2 sort by rating).

Additionally, it is possible to determine the period of time for reviews to be taken into consideration. For example, products with greater number of recent review should get higher priority.

Stock Status / Image Factor

Stock Status and Image Factors allow to sort in stock products or products with images.

If you set these factors as global ones, out-of-stock products and products without images will be always shown at the end of the list (both in catalog and search results pages).

Bestsellers Factor

Bestsellers Factor ranges products on the basis of number of bought items within a certain period or lifetime (magento 2 sort by best seller).

Profit Factor

Profit factor provides you with a possibility to range products depending on the product marge (the difference between cost and price). This factor is the most effectively used together with other, more obvious rules.

Rule Factor

This is one of the most flexible rules. It allows to manage products order on the basis of the set of rules (SKU, price, any attribute, category, etc)

For example, you can promote a Christmas product during the winter times or move all the 2019 year models to the top of the list.

Additional Factors

  • Popularity Factor (magento 2 sort by popularity)
  • SPV (Sales Per View) Factor
  • Discount (Biggest Saving) Factor

Additional Features

Products sorting in widgets

The extension allows you to determine the sequence of products displaying in Magento Catalog Products Listing Widget. This widget can be used to display various interesting offers on the pages of your store.


To make the configuration process easier and for your better understanding of different factors influencing the sorting order, there is an option of sorted products Preview in terms of extension. This option works both for sorting criteria and for ranging factors.

Feature Improved Sorting Other Extensions
Sorting Options
Customizable options + -possible sorting options are predefined
By price + +
Best sellers + +
Most Viewed / Most Popular + +
Top Rated + +
New / Recently added + +
Biggest Saving / Discount + +
Now in Wishlist + +
Extended Features
Out-of-stock to the end + +/-
Without image to the end + -
Preview Mode + -
Ranking Factors
By Profit + -
SPV (sales per view) + -
By Attribute Set + -
By Custom Rule + -
See it in action!
Pick a quick tutorial to learn about various aspects of this extension
Customer Reviews (3)
Write Your Own Review
You're reviewing:Improved Sorting for Magento 2
Your Rating
  1. Overall Satisfaction
    100 %
    Very cool module
    Paul from Enter, Netherlands
    Very important module for shops with a lot of dynamic information. Product sorting is probably one of the most important parts of a webshop, getting it right is really useful.

    Being able to fine-tune the sorting for a page without having to manually sort the page is really valuable.
    Also bought the following extensions: Magento Follow Up Extension Menu Manager Pro Fast Asynchronous Re-indexing Product Labels for Magento 2 Full Page Cache Warmer for Magento 2
  2. Overall Satisfaction
    100 %
    Exellent Module!
    wrc from Antalya, Turkey
    This extension is very useful and very powerful.
    "You can create the best product list using different ranging rules combinations, for example, the latest added products (within last 30 days) and, in addition, bestsellers with the best rating."
    This point most important for me. Thank you Mirasvit!
    Also bought the following extensions: Health & Performance Monitoring Suite for Magento 2 Full Page Cache Warmer for Magento 2 Reward Points + Referral program for Magento 2 Follow Up Email for Magento 2 Magento 2 Advanced Reports Extension
  3. Overall Satisfaction
    100 %
    Reasonably price and powerful tool
    Bart from Gurgaon, India
    Great extension and support service. I will buy more extensions.

    5+ stars from me )

The Improved Sorting for Magento 2 is compatible with:

Magento 2 Community Edition (CE) 2.1.* - 2.3.*
Magento 2 Enterprise Edition (EE) 2.1.* - 2.3.*
Magento 2 Cloud +

The extension is compatible with most layered navigation extensions (Amasty, Mageplaza, Manadev etc) and all search engines (native MySql, Sphinx, Elasticsearch search engines).

Have a question? Ask our support team
Need more help?

Save time by starting your support request online and we'll connect you to an expert.

Contact Us Now
Frequently asked questions

Can I set a different default sorting for particular category?

Yes. By default magento 2 uses global default sorting for all categories, but on category edit page you can change default sorting for this category.

For example sort 'Sale' category by discount amount and 'New Products' category by products' adding date.

Can I display 2 bestseller products, 3 recently added products and then all other products by rating?

Yes, for each sorting criteria you can add few sorting conditions and limit number of products for each conditions.

Example of conditions:

  • Sort by Bestseller / limit 2
  • Then Sort by Date / limit 3
  • Then Sort by Rating




  • Compatibility with EE Elasticsearch




  • Debug mode


  • Possible issue with second join (temporary table)
  • Popularity factor




  • Issue with sorting if criteria/factor is empty
  • Issue with applying custom sorting for category




  • integration with Autocomplete
  • Rating Factor. Use also number of ratings




  • Conditions column in criteria listing
  • Enabled Inline Editor
  • Search results sorting




  • Inline debug interface (&debug=sorting)




  • Compatibility issue with Magento Enterprise




  • Ability to use native "Position" as sorting attribute




  • Ability to defined limits


  • Error during indexation of sorting index if attribute is not set in rating factor
  • By default sort direction is set to direction of a default criterion, even when custom direction used




  • Compatibility with Magento 2.1.x




  • Attribute sort direction does not change
  • Saving sorting code




  • Popularity Factor
  • Discount Factor
  • Preview interface




  • Ability to use sorting for catalog widget "Catalog Products List"


  • Sort direction does not change




  • Changed sorting interface




  • Add module translation file mirasvit/module-navigation[#79]()




  • System settings page not loaded after adding new attribute to sorting #64




  • Conflict with Mirasvit Search module: searching products fails with error (since 1.0.7)




  • Push 'out of stock' products to the end of a list


  • Info about new settings




  • Push 'out of stock' products to the end of a list




  • Compatibility with Magento 2.1




  • Error during reindex mst_sorting by cron




  • Show configurable products at top of the list #3




  • Error during reindex due to discount criterion




  • Error during reindex sorting index




  • Compatibility with M2.1


  • Added module docs

Refund Policy

All customers can request a refund during 30 days after purchase of our software, if customer think that our software is not suitable for any reason. To request refund, customer must remove all copies of our software from its store, servers, computers, email, etc and confirm by email such removal. After receiving a request we will proceed refund within 3 business days.

If request for refund is received after 30 days after purchase, it will be rejected. Cost of installation and customization services are not refundable.

Support and bug fixing

Mirasvit offers free 90 days support of all software sold on this site. Customers can report all bugs, which were found in our software. We can solve only the bugs directly related to or caused by our extension. Those bugs must be reproduced on fresh Magento installation without any 3rd party plugins. We will solve that bugs in order of our development plan. 

We don’t do any type of custom work and we have a right to reject a support request if the issue is store-specific (cannot be reproduced on the fresh Magento installation without any 3rd party plugins).

Mirasvit will not be liable to you for any damages (including any loss of profits/saving, or incidental or consequential) related to our support service caused to you, your information and your business.

Software updates

Mirasvit offers free lifetime updates if they areavaliable. Updates are limited to the Magento version branch (1.x.x or 2.x.x). Customer can download an update and install it by himself. If support period is expired, can’t solve any possible problems with our software during or after updating. Mirasvit does not guarantee that it will release updates for any product.