Use Grouping in Calculation View Settings to keep lines organized as needed. Each group will have it's own blue header in the Article View.
Open the Grouping tab in View Settings and check the boxes for the properties by which you'd like to group. You can group by multiple properties which will create sub-sections with additional blue headers.
Subtotals will be calculated for each group and sub-group.