TableRowSorter<TableModel> sorter = new TableRowSorter<>(table.getModel());
table.setRowSorter(sorter);
List<RowSorter.SortKey> sortKeys = new ArrayList<>();
int columnIndexForJob = 2;
sortKeys.add(new RowSorter.SortKey(columnIndexForJob, SortOrder.ASCENDING));
int columnIndexForName = 1;
sortKeys.add(new RowSorter.SortKey(columnIndexForName, SortOrder.ASCENDING));
sorter.setSortKeys(sortKeys);
sorter.sort();