@Override
  public CloseableIterator<CachedDeserializable> iterator() {
    if (reverse) {
      return map.descendingValueIterator();
    } else {
      return map.valueIterator();
    }
  }
Mock sorted bag implementation. Uses the mock index map internally, for convenience.
geode-core/src/main/java/org/apache/geode/internal/cache/persistence/query/mock/SortedResultBagImpl.java