static JTable addRowSorter(final JTable table) { if (table != null) swing { table.setRowSorter(new TableRowSorter(table.getModel())); } ret table; }