I'm trying to achieve so that products with specific Manufacturer should be the first in the collection (for example, user wants to sort by price, so it should show all the products by Manufacturer X sorted by the price and then rest of the products like normally).
My idea was to hook somewhere between when the collection is being sorted by those attributes, but before it is "paginated". But I have trouble finding the place for it...
Of course if someone has a better idea, I'd love to hear it :)
addExpressionAttributeToSelect
to generate a virtual 1|0 flag and sort the collection first by that flag and then by the sort order requested by the user.