This can be done in Aloha by using Menu Item Priority.
First, under Store Settings - > Printing-Chits, go to the Chit Style tab and make sure the 'Sort Items according to Priority' and 'Print a separator line between Priority' boxes are checked.
Second, under Maintenance -> Menu -> Items, set the Priority for each of your items. Using your example of Appetizers and Entrees, I would set the Priority for all Appetizers to 10, and the Priority for all Entrees to 20. This will group all like items together on a chit, and when a chit contains both Apps and Entrees, the Apps will print first with a separator line printing between the Apps and Entree groups.
I am using Tableservice v6.1.9. If you are on an older version of TS, this is still available but the steps in Store Settings may be different (I am not sure). If you are using QS, I am not 100% sure if this is available, but this should point you in the right direction. Please post back if you have any questions.
Hope this helps,
Matt