SubOrgaoCtrl subOrgaoCtrl = new SubOrgaoCtrl(getDaoFactory());
lista = subOrgaoCtrl.listarTodosSubOrgaos(getOrgao(request));
} else {
Comparator ordem = new Comparator() {
public int compare(Object obj1, Object obj2) {
PersistentObject pobj1 = (PersistentObject) obj1;
PersistentObject pobj2 = (PersistentObject) obj2;
if (pobj1 != null && pobj1.getDescricao() != null) {
return pobj1.getDescricao().compareTo(
pobj2.getDescricao());
}
return 0;
}
};
lista = new TreeSet(ordem);