Newbie - how to alternate results around specific value

Hallo @all,

assume we have the following results:
product_1,merchant_A
product_2,merchant_A
product_3,merchant_B
product_4,merchant_B
product_5,merchant_C
product_6,merchant_C

Is there a way to alternate the merchants ?
product_1,merchant_A
product_3,merchant_B
product_5,merchant_C
product_2,merchant_A
product_4,merchant_B
product_6,merchant_C

Thank you and Best Regards
Daniel

This is not possible no matter what application you use unless you write your own code. First, the application has to know that the set A,B,C is already returned and have to start from a new set and recognize the A,B,C order.

Hi Jimmy,
Thank You for the answer. I've written the sorting in PHP know.
Best Regards
Daniel

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.