From 72e846894ec4f897f7f2bf484419714987cc6623 Mon Sep 17 00:00:00 2001 From: Sergey Stepanov Date: Thu, 7 Mar 2024 23:18:42 +0300 Subject: [PATCH] Use case-insensitive sort for games --- web/index.html | 2 +- web/js/gameList.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/web/index.html b/web/index.html index 407308bf6..0c40aba5f 100644 --- a/web/index.html +++ b/web/index.html @@ -126,7 +126,7 @@

Options

- + diff --git a/web/js/gameList.js b/web/js/gameList.js index 406b27e08..9b10b32ad 100644 --- a/web/js/gameList.js +++ b/web/js/gameList.js @@ -30,7 +30,7 @@ const gameList = (() => { i > list.length ? i = list.length - 1 : (i % list.length + list.length) % list.length }, - set: (data = []) => list = data.sort((a, b) => a.title > b.title ? 1 : -1), + set: (data = []) => list = data.sort((a, b) => a.title.toLowerCase() > b.title.toLowerCase() ? 1 : -1), empty: () => list.length === 0 } })()