public ObjectType getElementTypeForOrderByQueries() {
    return cachedElementTypeForOrderBy;
  }
Transforms the group by clause into distinct order by clause, if possible
geode-core/src/main/java/org/apache/geode/cache/query/internal/CompiledSelect.java