ability to product sortBy and groupBy