Grouping dozens of seperate elements, icons, inputs

I’ve created dozens of elements, icons and inputs and what to seperate them into 2 different “groups” is there a faster way of doing this other than 'shift-clicking" every element individually and selecting “group elements into a group” ?