Sort workers by lastname, name

FEA: ItEr76S07ConfigurationUnitInterfaceCorrections
This commit is contained in:
Ignacio Diaz Teijido 2012-03-07 18:18:24 +01:00 committed by Manuel Rego Casasnovas
parent 6af82b4c54
commit 67e51ab1e1

View file

@ -21,6 +21,7 @@
package org.libreplan.web.common.components.finders;
import java.util.Collections;
import java.util.List;
import org.libreplan.business.resources.daos.IWorkerDAO;
@ -45,7 +46,9 @@ public class WorkerFinder extends Finder implements IFinder {
@Transactional(readOnly = true)
public List<Worker> getAll() {
return workerDAO.getWorkers();
List<Worker> result = workerDAO.getWorkers();
Collections.sort(result);
return result;
}
@Override