+export const compareUsername = (a, b) => {
+ const a_name = a && a.user && a.user.username ? a.user.username : '';
+ const b_name = b && b.user && b.user.username ? b.user.username : '';
+ return a_name.localeCompare(b_name);
+};
+
export const findResult = (participant, round) => {
if (!participant || !participant.user_id) return null;
if (!round || !round.results || !round.results.length) return null;
};
export default {
+ compareUsername,
findResult,
};