bypass sorting if no grouping key was given.