Assign objects into groups by one or more properties, by object value, or by using a comparator function.