code: protected void sortIndexMap() {
          for (List<Doc> docs : indexmap.values()) {
              Collections.sort(docs, configuration.utils.makeComparatorForIndexUse());
          }
      }
docs: Sort the index map. Traverse the index map for all it's elements and
  sort each element which is a list.