Search in sources :

Example 1 with CategoryComboSizeNameComparator

use of org.hisp.dhis.category.comparator.CategoryComboSizeNameComparator in project dhis2-core by dhis2.

the class LoadFormAction method getSortedCategoryCombos.

private List<CategoryCombo> getSortedCategoryCombos(Set<CategoryCombo> categoryCombos) {
    List<CategoryCombo> listCategoryCombos = new ArrayList<>(categoryCombos);
    Collections.sort(listCategoryCombos, new CategoryComboSizeNameComparator());
    return listCategoryCombos;
}
Also used : CategoryCombo(org.hisp.dhis.category.CategoryCombo) CategoryComboSizeNameComparator(org.hisp.dhis.category.comparator.CategoryComboSizeNameComparator) ArrayList(java.util.ArrayList)

Aggregations

ArrayList (java.util.ArrayList)1 CategoryCombo (org.hisp.dhis.category.CategoryCombo)1 CategoryComboSizeNameComparator (org.hisp.dhis.category.comparator.CategoryComboSizeNameComparator)1