Is it possible to add a custom attribute (Brand, SKU, etc.) to the list of sorting options?

Is it possible to add a custom attribute (Brand, SKU, etc.) to the list of sorting options?

Our Improved Sorting module extends the standard Magento sorting by adding new sorting options which are: Best Sellers, Top Rated, Most Viewed, etc. Nevertheless, it is possible to add a new option to the sorting list using the default Magento functionality. To do so, please, follow the steps below.

Step 1. Navigate to Stores → Attributes → Product → choose the needed attribute → Storefront Properties section.

Step 2. Enable the Used for Sorting in Product Listing option.



Once done, the option will appear on category pages among the sorting options.



Using our Improved Sorting extension, it is also possible to arrange the sorting order according to your needs in Stores → Configuration → Amasty Extensions → Improved Sorting → General: