We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c7cf3e0 commit 2a71452Copy full SHA for 2a71452
src/index.ts
@@ -39,7 +39,7 @@ export async function getContests(config?: config): Promise<{ running: contest[]
39
cfg.abbrList.map(
40
async abbr =>
41
{
42
- try { return await alloj[abbr].get(); }
+ try { return (await alloj[abbr].get()).sort((a, b) => a.startTime.getTime() - b.startTime.getTime()); }
43
catch(e)
44
45
console.error(`Failed to get contest information for ${alloj[abbr].name}, details:`);
0 commit comments