From 4a0576cd3f1b81a59a5e2cb3cbec8592fe088bcb Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 5 Mar 2022 23:59:35 +0200 Subject: [PATCH] far --- 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 9ee152fcb..5a51df875 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 (parseInt(x.innerHTML) > parseInt(y.innerHTML)) { + if (x.innerHTML.toLowerCase() > y.innerHTML.toLowerCase()) { shouldSwitch = true; break; } } else if (dir == "desc") { - if (parseInt(x.innerHTML) < parseInt(y.innerHTML)) { + if (x.innerHTML.toLowerCase() < y.innerHTML.toLowerCase()) { shouldSwitch = true; break; }