]> git.sesse.net Git - ultimatescore/blobdiff - update_sheets.js
Fix the display of the points in each group.
[ultimatescore] / update_sheets.js
index bd3f9e70340530d335e29bb2d8d652d38f5e2dd0..b6e842648bfd083a73e0323f695fc79e4d5ef9e5 100644 (file)
@@ -72,6 +72,7 @@ function publish_group_rank(teams, games, group_name)
        let cols = config['score_sheet_cols'];
 
        apply_games_to_teams(games, teams, group_name);
+       teams.sort(function(a, b) { return a.seeding - b.seeding });
 
        // Write the points total to the unsorted columns.
        if (config['point_total_start_row'] !== null) {