It was `group_by`, not `sort_by`.