With the default setting CellGroupingRules->"NormalGrouping", cells are automatically grouped according to their cell style.
CellGroupingRules can also be set to {type, n}, where type is selected from a list and n is an integer that gives the precedence of the grouping relative to other cells of the same type.