The groupBy() function.