@Test public void sortAlphaDescNumberDesc() { tm = unsortedDoubleTableModel(); verifyRowOrder("unsorted", tm, UNSORTED_IDS); tm.sort(ALPHA, SortDir.DESC, NUMBER, SortDir.DESC); verifyRowOrder("adnd", tm, ROW_ORDER_AD_ND); }
public void sort(String id1, SortDir dir1, String id2, SortDir dir2) { Collections.sort(rows, new RowComparator(id1, dir1, id2, dir2)); }
TableModel { public void sort(String id1, SortDir dir1, String id2, SortDir dir2) { Collections.sort(rows, new RowComparator(id1, dir1, id2, dir2)); } }
TableModel { public void sort(String id1, SortDir dir1, String id2, SortDir dir2) { Collections.sort(rows, new RowComparator(id1, dir1, id2, dir2)); } TableModel(String... columnIds); }
TableModel { public void sort(String id1, SortDir dir1, String id2, SortDir dir2) { Collections.sort(rows, new RowComparator(id1, dir1, id2, dir2)); } TableModel(String... columnIds); int rowCount(); int columnCount(); String[] getColumnIds(); Row[] getRows(); void addAnnotation(String key, Object value); Collection<Annot> getAnnotations(); void setComparator(String columnId, CellComparator comparator); void setFormatter(String columnId, CellFormatter formatter); CellFormatter getFormatter(String columnId); Row addRow(); void sort(String id1, SortDir dir1, String id2, SortDir dir2); static SortDir sortDir(String s); }
TableModel { public void sort(String id1, SortDir dir1, String id2, SortDir dir2) { Collections.sort(rows, new RowComparator(id1, dir1, id2, dir2)); } TableModel(String... columnIds); int rowCount(); int columnCount(); String[] getColumnIds(); Row[] getRows(); void addAnnotation(String key, Object value); Collection<Annot> getAnnotations(); void setComparator(String columnId, CellComparator comparator); void setFormatter(String columnId, CellFormatter formatter); CellFormatter getFormatter(String columnId); Row addRow(); void sort(String id1, SortDir dir1, String id2, SortDir dir2); static SortDir sortDir(String s);  }