Print by group in the kitchen printer

how can i printing by group
The customer wants to see the beverage and food groups separately in the kitchen receipt
example

1x americano
2x latte
1x coca cola

1x breakfast
2x cake