<!-- TITLE: Improved Sorting - Magento 2 module documentation--> <!-- SUBTITLE: Author: Mateusz Bereszczuk --> # Improved Sorting Module ## Module overview Help your customers find their next perfect product, with our new sorting module. Before, your customers had only three ways to sort your products, by: Position, Product Name or Price. Improved Sorting module gives them six additional sorting methods: **Best Sellers**, **New Products**, **Old Products**, **Cheapest**, **Most Expensive**, **Most Commented**. ## Module compatibility This module is compatibile with Magento Community versions: **2.2** and **2.3**. ## How it works Once installed, you immediately gain access to module features. There are not any settings to be made in an admin panel. To sort by desired property, click on **Sort By Toolbar** ![Image 1](/uploads/improved-sorting/image-1.png "Image 1") List of sorting options will show up after clicking **Sort by** ![Image 2](/uploads/improved-sorting/image-2.png "Image 2") **Best Sellers** - the most sold products come first **New Products** - the recently added products come first **Old Products** - the oldest products come first **Cheapest** - sorting based on the lowest price **Most Expensive** - sorting based on the highest price **Most Commented** - sorting based on the amount of comments under products All sorting options are fully compatible with magento 2, that means you can access them in **Configuration > Catalog > Storefront** ![Image 3](/uploads/improved-sorting/image-3.png "Image 3") Or assign them freely to categories in **Catalog > Categories > Display Settings** ![Image 4](/uploads/improved-sorting/image-4.png "Image 4") You can globally select the available sort options in **Configuration > Aurora > Improved Sorting -> Select Options** ![Image 5](/uploads/improved-sorting/image.png "Image 5") ## Demo demo2.magecreation.com ## Installation ### Composer 1. Add repo to composer.json: ```text "repositories": [ ... { "type": "vcs", "url": "git@git.auroracreation.com:aurora-modules/improved-sorting.git" } ... ], ``` 2. Add package to composer.json: ```text "require": { ... "aurora/improvedsorting": "*" ... }, ``` 3. In Magento root folder run commands: ```text composer update aurora/improvedsorting php bin/magento module:enable Aurora_Improvedsorting php bin/magento setup:upgrade ``` ### Manual 1. Unzip archive. 2. Upload extension files on your server to: ```text {Magento root} └── app/ └── code ``` 3. In Magento root folder run commands: ```text php bin/magento module:enable Aurora_Improvedsorting php bin/magento setup:upgrade ``` ### Thank you for your interest in our products! ## Changelog ### v2.2.0 - Added global available options by config ### v2.1.1 - Added tests (phpcs, phpunit, phpmd, phpstan) in pipelines, adapted to tests, php unit fixed ### v2.1.0 - Added sorting by most viewed products ### v2.0.5 - Support for Magento 2.4.5 - Sorting by created_at fix ### v2.0.4 - Most commented indexer fixed ### v2.0.3 - Module update ### v2.0.2 - Module update ### v2.0.1 - Fix for elasticsuite sorting - Fetch items only with existing products ### v2.0.0 - Support for elasticsearch ### v1.4.56 - Delete strict type from Sorter class method ### v1.4.55 - Version change ### v1.1.8 - Poprawienie błędów ### v1.1.7 - Sort by attributes added ### v1.1.6 - Module update ### v1.1.5 - Patch installation ### v1.1.4 - Improvement of the sorting template ### v1.1.3 - Sniffers fix ### v1.1.2 - Fix bestsellers item count ### v1.1.1 - Update to 2.3- fixes ### v1.0.3 - Update to Magento 2.3 ### v1.0.2 - Update to Magento 2.2.4 ### v1.0.1 - Update to Magento 2.1 i 2.2