code: protected void sortIndexMap() {
          for (Iterator<List<Doc>> it = indexmap.values().iterator(); it.hasNext(); ) {
              Collections.sort(it.next(), new DocComparator());
          }
      }
docs: Sort the index map. Traverse the index map for all it's elements and
  sort each element which is a list.