question: 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 ) ; }
target:  Sorts the existing filtered data.  This should only be used if the filter hasn't changed.