From 769aa87afb4b764021aa769956bcd000408ce5ca Mon Sep 17 00:00:00 2001 From: Tom Smeding Date: Sun, 4 Sep 2022 20:22:03 +0200 Subject: Sort case-insensitively --- static/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'static') diff --git a/static/index.js b/static/index.js index 311afc7..ca76f1e 100644 --- a/static/index.js +++ b/static/index.js @@ -185,7 +185,7 @@ function insertItem(votes, string) { var i; for (i = 0; i < glist.length; i++) { if (glist[i][0] > votes) continue; - if (glist[i][0] < votes || glist[i][1] > string) break; + if (glist[i][0] < votes || glist[i][1].toLowerCase() > string.toLowerCase()) break; } var el = createItemElement(votes, string); if (i == glist.length) { -- cgit v1.2.3-70-g09d2