forked from MarseyWorld/MarseyWorld
minor fix to sorting tables
parent
1886dd986e
commit
e1d5b8eb88
|
@ -419,7 +419,7 @@ function sort_table(t) {
|
||||||
attr = parseInt(x.dataset.time);
|
attr = parseInt(x.dataset.time);
|
||||||
} else {
|
} else {
|
||||||
attr = x.innerText
|
attr = x.innerText
|
||||||
if (/^[\d-,]+$/.test(attr)) {
|
if (/^[\d-,]+$/.test(x.innerHTML)) {
|
||||||
attr = parseInt(attr.replace(/,/g, ''))
|
attr = parseInt(attr.replace(/,/g, ''))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue