const b_score = b && b.score ? b.score : 0;
if (a_score < b_score) return -1;
if (b_score < a_score) return 1;
- return Participant.compareUsername(a.participant, b.participant);
+ return Participant.compareUsername(a.participant, b.participant) * -1;
};
export const findParticipant = (tournament, user) => {
calculateScores,
compareScore,
findParticipant,
+ getRunners,
+ getTournamentAdmins,
patchResult,
patchRound,
patchUser,