How to group items in Microsoft Lists and SharePoint list views
The group items feature in Microsoft Lists and SharePoint lists allows you to group items with the same value in a specific column.
Groups in Microsoft Lists are applied to a view and are displayed as collapsible elements with the group name and the number of items being displayed in the header of the section.