@Override
  public boolean equals(Object other) {
    if (other == this) {
      return true;
    }
    if (!(other instanceof SortedResultSet)) {
      return false;
    }
    if (!elementType.equals(((SortedResultSet) other).elementType)) {
      return false;
    }
    return super.equals(other);
  }
Implementation of SelectResults that extends TreeSet This is the sorted version of ResultSet used
for order by clause If the elements are Structs, then use SortedStructSet instead.

@since GemFire 4.0
geode-core/src/main/java/org/apache/geode/cache/query/internal/SortedResultSet.java