group and sort fields added to dataset