cancel
Showing results for 
Search instead for 
Did you mean: 

Magento 2 - Sort by Brand and Position?

Magento 2 - Sort by Brand and Position?

Is it possible to sort by A the Brand alphabetically and then B by Position Programmatically?
2 REPLIES 2

Re: Magento 2 - Sort by Brand and Position?

@akshaykamba454 If you make the value of your brand attribute as yes for "Used for Sorting in Product Listing" then it will automatically show in Sorting Dropdown and if it is of string type then it will sort alphabetically.

 

Thanks

Re: Magento 2 - Sort by Brand and Position?

@rahul Gupta  Thanks for Reply 

I have set brand attribute  "Used for Sorting in Product Listing" as YES

But what about the position I want sorting brand and then Position