private void sortExistingData(){
  int[] lastViewToModel=getViewToModelAsInts(viewToModel);
  updateUseToString();
  cacheSortKeys(getSortKeys());
  if (isUnsorted()) {
    if (getRowFilter() == null) {
      viewToModel=null;
      modelToView=null;
    }
 else {
      int included=0;
      for (int i=0; i < modelToView.length; i++) {
        if (modelToView[i] != -1) {
          viewToModel[included].modelIndex=i;
          modelToView[i]=included++;
        }
      }
    }
  }
 else {
    Arrays.sort(viewToModel);
    setModelToViewFromViewToModel(false);
  }
  fireRowSorterChanged(lastViewToModel);
}

private void sortExistingData ( ) { int [ ] lastViewToModel = getViewToModelAsInts ( viewToModel ) ; updateUseToString ( ) ; cacheSortKeys ( getSortKeys ( ) ) ; if ( isUnsorted ( ) ) { if ( getRowFilter ( ) == null ) { viewToModel = null ; modelToView = null ; } else { int included = 0 ; for ( int i = 0 ; i < modelToView . length ; i ++ ) { if ( modelToView [ i ] != - 1 ) { viewToModel [ included ] . modelIndex = i ; modelToView [ i ] = included ++ ; } } } } else { Arrays . sort ( viewToModel ) ; setModelToViewFromViewToModel ( false ) ; } fireRowSorterChanged ( lastViewToModel ) ; }
sorts the existing filtered data . this should only be used if the filter hasn ' t changed .
