Locate the directory style as explained in Locating directory style in the configuration.
Locate the <Groups node in the root of <BaseQuery.
<Groups Name="Folder">
<PropertyGroupDescription PropertyName="[article.folderRef:DescName]"/>
</Groups>
<Groups Name="Editor">
<PropertyGroupDescription PropertyName="[article.modifierRef.name]"/>
</Groups>
Rename grouping label
Change the name but make sure it is unique at the level of the base query
Change the grouping criteria
Modify the PropertyName content. Make sure the attribute you use exists also as a displayed field - e.g. in any ColStyle of that directory style.
Add anoter grouping criteria
Copy and paste an entire grouping node. Rename grouping label and set the grouping criteria.
See also