forked from rDrama/rDrama
1
0
Fork 0

parse sortKey as int too

master
Aevann 2023-03-07 07:37:14 +02:00
parent 7f95458da7
commit bdde66f020
1 changed files with 3 additions and 0 deletions

View File

@ -369,6 +369,9 @@ function sort_table(t) {
let attr;
if ('sortKey' in x.dataset) {
attr = x.dataset.sortKey;
if (/^[\d-,]+$/.test(x.innerHTML)) {
attr = parseInt(attr.replace(/,/g, ''))
}
} else if ('time' in x.dataset) {
attr = parseInt(x.dataset.time);
} else {