Quote line items can appear in a single list or separate lists of groupings that you designate using a standard or custom field on your quote templates.
You can automatically group your quote line items by Product Family.
Users can override this automatic grouping on individual quotes by selecting the Group Line Items field and manually grouping line items on a quote.
Before you begin, it's important to determine what field has the value you want to use when automatically grouping line items.
To automatically group quote line items, If it is a custom field on the Products object: