@Override protected void addSorting(final TableViewer tableViewer){
  final TableViewerSorter sorter=new TableViewerSorter(tableViewer);
  for (int i=0; i < columnMetadatas.length; i++) {
    final ColumnMetadata columnMetadata=columnMetadatas[i];
    final Comparator<Link> comparator=columnMetadata.getComparator();
    if (comparator != null) {
      sorter.setComparator(i,comparator);
    }
  }
  tableViewer.setSorter(sorter);
}

@ Override protected void addSorting ( final TableViewer tableViewer ) { final TableViewerSorter sorter = new TableViewerSorter ( tableViewer ) ; for ( int i = 0 ; i < columnMetadatas . length ; i ++ ) { final ColumnMetadata columnMetadata = columnMetadatas [ i ] ; final Comparator < Link > comparator = columnMetadata . getComparator ( ) ; if ( comparator != null ) { sorter . setComparator ( i , comparator ) ; } } tableViewer . setSorter ( sorter ) ; }
override addsorting to supply sort comparators for columns that require non - string comparisons .
