new String[] {"Support", "3,345.6"},
new String[] {"Management", "6,017.47"}}, 0);
// Sort by department and check the expected results.
DataSetComparator comp = new DataSetComparator();
comp.addSortCriteria("0", DataSetComparator.ORDER_DESCENDING);
xyDataSet = xyDataSet.sort(comp);
assertDataSetValues(xyDataSet, new String[][] {
new String[] {"Support", "3,345.6"}}, 0);
// Sort by amount and check the expected results.
comp = new DataSetComparator();
comp.addSortCriteria("1", DataSetComparator.ORDER_ASCENDING);
xyDataSet = xyDataSet.sort(comp);
assertDataSetValues(xyDataSet, new String[][]{
new String[]{"Services", "2,504.5"}}, 0);
}