diff --git a/templates/stats_table.html b/templates/stats_table.html
index da17179..99f35e0 100644
--- a/templates/stats_table.html
+++ b/templates/stats_table.html
@@ -115,16 +115,20 @@ var table_{{div_id}} = new Tabulator("#table-{{div_id}}", {
urlPrefix: "/player/",
}},
{title: "No Variant", headerHozAlign: "center", columns: [
- {title: "ELO", field: "novar_rating"},
- {title: "Games", field: "novar_games_played"},
- {title: "Win%", field: "novar_winrate"},
- {title: "Max Streak", field: "novar_max_streak"},
+ {title: "ELO", field: "novar_rating", headerSortStartingDir: "desc"},
+ {title: "Games", field: "novar_games_played", headerSortStartingDir: "desc"},
+ {title: "Win%", field: "novar_winrate", headerSortStartingDir: "desc", formatter:function(cell, formatterParams, onRendered) {
+ return cell.getValue() + "%";
+ }},
+ {title: "Max Streak", field: "novar_max_streak", headerSortStartingDir: "desc"},
]},
{title: "Clue Starved", headerHozAlign: "center", columns: [
- {title: "ELO", field: "cs_rating"},
- {title: "Games", field: "cs_games_played"},
- {title: "Win%", field: "cs_winrate"},
- {title: "Max Streak", field: "cs_max_streak"}
+ {title: "ELO", field: "cs_rating", headerSortStartingDir: "desc"},
+ {title: "Games", field: "cs_games_played", headerSortStartingDir: "desc"},
+ {title: "Win%", field: "cs_winrate", headerSortStartingDir: "desc", formatter:function(cell, formatterParams, onRendered) {
+ return cell.getValue() + "%";
+ }},
+ {title: "Max Streak", field: "cs_max_streak", headerSortStartingDir: "desc"}
]},
]
});