Collections.sort(results, new ResultComparator());
operations.generateResultTable(results,
operations.returnEvent(eventName), heatGender);
Event event = operations.returnEvent(eventName);
if (heatGender.equals("Mixt")) {
ResultWriter rWriterM = new ResultWriter(event, competitionTitle, heatGender, "M");
rWriterM.run();
ResultWriter rWriterF = new ResultWriter(event, competitionTitle, heatGender, "F");
rWriterF.run();
} else {
ResultWriter rWriter = new ResultWriter(event, competitionTitle, heatGender, "Mixt");
rWriter.run();
}
}