if (registrationList.size() > 0){
if (type==0){
sortAlgorithm.sortRegistrationByName(registrationList);
}
else if (type==1){
sortAlgorithm.sortRegistrationById(registrationList);
}
else if (type==2){
sortAlgorithm.sortRegistrationByEndDate(registrationList);
}
}