removing sort from `group()` call