}
}
}
if (this.getOrderCriteria() == 0) {
final ComparatorChain comparatorChain = new ComparatorChain();
comparatorChain.addComparator(new ReverseComparator(new BeanComparator("capacidadeExame")));
comparatorChain.addComparator(new BeanComparator("nome"));
Collections.sort(availableInfoRoom, comparatorChain);
} else if (this.getOrderCriteria() == 1) {
final ComparatorChain comparatorChain = new ComparatorChain();
comparatorChain.addComparator(new ReverseComparator(new BeanComparator("edificio")));
comparatorChain.addComparator(new BeanComparator("nome"));
Collections.sort(availableInfoRoom, comparatorChain);
} else if (this.getOrderCriteria() == 2) {
final ComparatorChain comparatorChain = new ComparatorChain();
comparatorChain.addComparator(new ReverseComparator(new BeanComparator("tipo")));
comparatorChain.addComparator(new BeanComparator("nome"));
Collections.sort(availableInfoRoom, comparatorChain);
}
List<SelectItem> items = new ArrayList<SelectItem>(availableInfoRoom.size());