How to show one product by manufacturer

I have a list of products from different manufacturers. I would like to show a product for each manufacturer until exhaustion of manufacturers and resume the cycle in every result-set of the index.
For example:

{ id: 1, name: ‘black tea’, manufacturer: ‘manufactureA’ },
{ id: 2, name: ‘pizza’, manufacturer: ‘manufactureB’ },
{ id: 3, name: ‘biscuits’, manufacturer: ‘manufactureC’ },
{ id: 4, name: ‘orange juice’, manufacturer: ‘manufactureA’ },
{ id: 5, name: ‘different pizza’, manufacturer: ‘manufactureB’ },
{ id: 6, name: ‘apple juice’, manufacturer: ‘manufactureC’ }

Is there a way to do it maybe with sorting or ranking?

I don’t think you can do this circularly, but what you can do is distinct. It allows you to show only one (or a certain other number) item per unique attribute. In your case that attribute can be manufacturer. See more info here: