fix casing issue when specifying ordering dimension in groupBy