@Override
  public void add(Object e) {
    map.put(extractor.getSortKey(e), counter.incrementAndGet(), e);

  }
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