File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
frontend/src/routes/leaderboard Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,9 @@ function RouteComponent() {
5252
5353 const batches = [
5454 ...new Set < string > ( leaderboardData . map ( ( user ) => user . batch ) ) ,
55- ] . filter ( ( batch ) => ( batch ? true : false ) ) ;
55+ ]
56+ . filter ( ( batch ) => ( batch ? true : false ) )
57+ . sort ( ( a , b ) => parseInt ( b ) - parseInt ( a ) ) ;
5658
5759 if ( loading ) return < LoadingIndicator /> ;
5860
Original file line number Diff line number Diff line change @@ -51,7 +51,9 @@ function RouteComponent() {
5151
5252 const batches = [
5353 ...new Set < string > ( leaderboardData . map ( ( user ) => user . batch ) ) ,
54- ] . filter ( ( batch ) => ( batch ? true : false ) ) ;
54+ ]
55+ . filter ( ( batch ) => ( batch ? true : false ) )
56+ . sort ( ( a , b ) => parseInt ( b ) - parseInt ( a ) ) ;
5557
5658 if ( loading ) return < LoadingIndicator /> ;
5759
You can’t perform that action at this time.
0 commit comments