How do I sort a query loop on alphabetical order based on product brand?

So I have archive page where I have products and filters.

All products are assigned to a certain brand (the product_brand taxonomy)

For the query loop I want it to be sorted based on alphabetical order of the brands. So products on top start with brand letter A then B and so on.

Im using a block and a product loop > posts > products

  • is main query = true
1 Like

Hi there,

This article would help you to understand this topic better.