fix sorting

remotes/1693045480750635534/spooky-22
Aevann1 2022-09-10 10:45:37 +02:00
parent b99cc4a8aa
commit 8b5b6a2429
1 changed files with 1 additions and 2 deletions

View File

@ -8,8 +8,7 @@ function sort_table(n) {
const ele = rows[i];
let x = rows[i].getElementsByTagName("TD")[n];
x = x.getElementsByTagName('a')[0] || x;
x =
const attr = x.dataset.time ? parseInt(x.dataset.time) : parseInt(x.innerHTML);
const attr = x.dataset.time ? parseInt(x.dataset.time) : parseInt(x.innerHTML.replace(/,/g, ''));
items.push({ ele, attr });
}
if (sortAscending[n]) {