From eca021c239e37d24ec70386072d2804151d7d76e Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sun, 6 Mar 2022 00:05:09 +0200 Subject: [PATCH] fds --- files/assets/js/sort_table.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/assets/js/sort_table.js b/files/assets/js/sort_table.js index 5a51df875..9ee152fcb 100644 --- a/files/assets/js/sort_table.js +++ b/files/assets/js/sort_table.js @@ -11,12 +11,12 @@ function sort_table(n) { x = rows[i].getElementsByTagName("TD")[n]; y = rows[i + 1].getElementsByTagName("TD")[n]; if (dir == "asc") { - if (x.innerHTML.toLowerCase() > y.innerHTML.toLowerCase()) { + if (parseInt(x.innerHTML) > parseInt(y.innerHTML)) { shouldSwitch = true; break; } } else if (dir == "desc") { - if (x.innerHTML.toLowerCase() < y.innerHTML.toLowerCase()) { + if (parseInt(x.innerHTML) < parseInt(y.innerHTML)) { shouldSwitch = true; break; }