sort

To put things into groups by what they have in common.