}
}
if(presences.size() > 0) {
MergeSortAlgorithm sortAlgorithm = new MergeSortAlgorithm();
if (sortByStudent){
sortAlgorithm.sortPresencesByNameAndDateTime(presences);
}else{
sortAlgorithm.sortPresencesByDateAndTime(presences);
}
}
int numberOfMisses = 0;