Grouping together events, ideas, and objects that share similar characteristics is part of: concept formation.
Concept formation refers to the process by which a person learns to sort specific experiences into general rules or classes. The term concept formation refers to how a person learns to create classes.
In terms of psychology, the term concept formation, or concept learning, refers to the development of the ability to respond to common features of categories of objects or events.