tods-competition-factory 2.2.10 → 2.2.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.mjs +2 -2
- package/dist/tods-competition-factory.development.cjs.js +6 -1
- package/dist/tods-competition-factory.development.cjs.js.map +1 -1
- package/dist/tods-competition-factory.production.cjs.min.js +1 -1
- package/dist/tods-competition-factory.production.cjs.min.js.map +1 -1
- package/package.json +4 -4
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
function factoryVersion() {
|
|
6
|
-
return '2.2.
|
|
6
|
+
return '2.2.11';
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
const SINGLES_MATCHUP = 'SINGLES';
|
|
@@ -36421,6 +36421,11 @@ function scheduledSortedMatchUps({ schedulingProfile, matchUps = [] }) {
|
|
|
36421
36421
|
timeGroups[scheduledTime] = [];
|
|
36422
36422
|
timeGroups[scheduledTime].push(matchUp);
|
|
36423
36423
|
}
|
|
36424
|
+
for (const timeKey of Object.keys(timeGroups)) {
|
|
36425
|
+
const timeGroup = timeGroups[timeKey];
|
|
36426
|
+
const sortedTimeGroup = timeGroup.sort((a, b) => (a['roundNumber'] || 0) - (b['roundNumber'] || 0));
|
|
36427
|
+
timeGroups[timeKey] = sortedTimeGroup;
|
|
36428
|
+
}
|
|
36424
36429
|
const sortedTimeKeys = Object.keys(timeGroups).sort();
|
|
36425
36430
|
for (const scheduledTime of sortedTimeKeys) {
|
|
36426
36431
|
const timeGroup = timeGroups[scheduledTime];
|