File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -247,7 +247,7 @@ <h1>${blueScore}</h1>
247247 // and sort by scheduled time in DESCENDING order (newest on top)
248248 const filteredMatches = allMatches
249249 . filter ( m => m . comp_level !== 'p' ) // Filter out practice matches
250- . sort ( ( a , b ) <= b . time - a . time ) ; // Newest matches (highest time) first
250+ . sort ( ( a , b ) => b . time - a . time ) ; // Newest matches (highest time) first
251251
252252 if ( matchesContainer ) {
253253 matchesContainer . innerHTML = '' ; // Clear loading message
@@ -267,7 +267,7 @@ <h1>${blueScore}</h1>
267267 // Calculate next match time by finding the *earliest* match in the future (sort ASC)
268268 const nextMatch = allMatches
269269 . filter ( m => m . comp_level !== 'p' && m . time > now )
270- . sort ( ( a , b ) <= a . time - b . time ) [ 0 ] ;
270+ . sort ( ( a , b ) => a . time - b . time ) [ 0 ] ;
271271
272272 const nextMatchTime = nextMatch ? formatMatchTime ( nextMatch . time ) : 'N/A' ;
273273
You can’t perform that action at this time.
0 commit comments