Sort the comments into groups by comment type
Order the comments in each group by order_id
Display the comments in the conversation by type in order
Select the appropriate template based on the comment type