fix issue with ordering of datasets (should be by ordinal in group table - do not go through hash as order is lost).