+export const compareResult = round => (a, b) => {
+ const a_result = findResult(a, round);
+ const b_result = findResult(b, round);
+ const a_time = a_result ? a_result.time : 0;
+ const b_time = b_result ? b_result.time : 0;
+ if (a_time) {
+ if (b_time) {
+ if (a_time < b_time) return -1;
+ if (b_time < a_time) return 1;
+ return 0;
+ }
+ return -1;
+ }
+ if (b_time) {
+ return 1;
+ }
+ return 0;
+};
+