There could be a button to collapse/uncollapse all categories at once. It should only be visible if the setting "Group by Category" is on. This is an example of where it could be placed: 