I am creating a table adding zones for multiple products (like Bedroom, kitchen, Dining etc). If I run a loop 12 times (12 zones) then I want 5 rows on one page, rest 5 on another and the remaining on 3rd page for each product. Somehow I achieved this scenario for Bedroom but for kitchen the pages are not in order. The 2nd & 3rd pages of both kitchen and dining are appearing just after Bedroom all 3 pages displayed.
How can I put them in correct order so that each product should have its zones in respective order.