How To Set Up Sort By Position In Magento 2
In Magento 2, the “Sort by Position” feature allows store administrators to control the display order of products within a category. This is particularly useful for highlighting featured products or organizing items in a specific sequence to enhance user experience. In this guide, you’ll learn How To Set Up Sort By Position In Magento 2.
Why Use “Sort by Position”?
- ✅ Highlight featured or best-selling products
- ✅ Customize product display order within categories
- ✅ Improve user navigation and control merchandising strategy
Steps To Set Up Sort By Position In Magento 2
Option 1: Enable “Sort by Position” Globally
This method adds “Position” as an available sort option for all categories in your Magento store.
Steps:
- Navigate to Stores > Configuration > Catalog > Catalog > Storefront.
- In the Product Listing Sort by dropdown, ensure Position is selected.
- Under Available Product Listing Sort By, confirm that Position is included.
- Click Save Config
📝 This applies the sorting option globally. All categories will show “Position” in the sorting dropdown unless individually overridden. |

Option 2: Enable “Sort by Position” Per Category
This method allows you to apply the “Sort by Position” feature to specific categories only.
Steps:
- Go to Catalog > Categories
- Select a category from the left-hand category tree
- Expand the Display Settings tab
- In Available Product Listing Sort By, ensure Position is selected
- (Optional) Set Default Product Listing Sort By to Position if you want it to be the default option
- Click Save
🧠 This setting will override the global config but only for the current category. |

Set Product Positions in Category
Once sorting by position is enabled, you can now manage how products are ordered in the category.
Steps:
- In the same Category Edit screen, scroll to Products in Category
- Enter numeric values in the Position column – lower values appear first
- Use drag-and-drop or type in values manually
- Save the category
🎯 Example: A product with position “1” will appear before a product with position “10”. |

Check Frontend and Refresh Indexes
After saving your configuration and product positions:
Visit the category on your storefront
Use the sort dropdown to select Position
If the order doesn’t update, run the following commands:
php bin/magento indexer:reindex
php bin/magento cache:flush
Troubleshooting Tips
- Sort option not showing? Check if your theme supports sort dropdowns.
- Still not updating? Confirm that “Position” is enabled in both global and category settings.
- Third-party themes: Some custom themes might override Magento’s sorting behavior.
Using the “Sort by Position” option in Magento 2 gives you powerful control over how products are presented in your store. Whether applied globally or on a per-category basis, this feature can help boost product visibility and improve the overall shopping experience.
Follow us for the more helpful posts!
We hope this is a useful post for you.
You can read more useful posts like How To Add Back To Top Button In Magento 2.