code: protected void reallocateIndexes() {
          indexes = new Integer[getFilteredModel().getSize()];
          for (int i = 0; i < indexes.length; i++) {
              indexes[i] = new Integer(i);
          }
          applyComparator();
      }
docs: Internally called to reallocate the indexes. This method should be called when the filtered model changes its
  element size