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) => {