Make table sortable by date of birth

This commit is contained in:
Jan Philipp Timme 2017-12-30 12:11:28 +01:00
parent 24f295fefe
commit 4da5b744b0

View File

@ -235,7 +235,7 @@ function renderDriverInfoBox(race) {
content += "<td>"+driver.forename+"</td>"; content += "<td>"+driver.forename+"</td>";
content += "<td>"+driver.surname+"</td>"; content += "<td>"+driver.surname+"</td>";
content += "<td>"+driver.nationality+"</td>"; content += "<td>"+driver.nationality+"</td>";
content += "<td>"+germanDateString(driver.dob)+"</td>"; content += "<td data-sort=\""+driver.dob.toISOString()+"\">"+germanDateString(driver.dob)+"</td>";
content += "<td><a target=\"_blank\" href=\""+driver.url+"\">Wikipedia</a></td>"; content += "<td><a target=\"_blank\" href=\""+driver.url+"\">Wikipedia</a></td>";
content += "</tr>"; content += "</tr>";
} }