From d61a535a95bdcd8c88104ff26e3ba875703a330e Mon Sep 17 00:00:00 2001 From: Paul Date: Fri, 1 Oct 2021 02:03:22 -0400 Subject: [PATCH] Fix fuzzy init sort --- scripts/fuzzy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/fuzzy.js b/scripts/fuzzy.js index ea69144..dbae39f 100644 --- a/scripts/fuzzy.js +++ b/scripts/fuzzy.js @@ -31,7 +31,7 @@ function fuzzyInit(pagesFileName) { return; } - pages.sort(); + pages.sort((x, y) => {return ('' + x.title).localeCompare(y.title)}); searchField.addEventListener("keyup", (e) => {