{
let div = d3.create("div");
let table = div.append("table");
let head = table.append("tr");
head.append("th").text("Rank");
head.append("th").text("Team");
head.append("th").text("Rating");
d3.sort(d3.zip(teams, strengths), (a) => a[1])
.reverse()
.forEach(function (a, i) {
let row = table.append("tr");
row.append("td").text(i + 1);
row.append("td").text(a[0].replace("_", " "));
row.append("td").text(a[1]);
});
return div.node();
}