From 7007995f119f678fd0476e53d1a64b983718dca3 Mon Sep 17 00:00:00 2001 From: Jack Date: Sat, 7 Aug 2021 15:49:59 +0100 Subject: [PATCH] sorting themes --- src/js/commandline-lists.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/js/commandline-lists.js b/src/js/commandline-lists.js index 0e1a0418c..57f0b91e7 100644 --- a/src/js/commandline-lists.js +++ b/src/js/commandline-lists.js @@ -2135,6 +2135,10 @@ export let themeCommands = { }; Misc.getThemesList().then((themes) => { + //sort themes by name + themes = themes.sort((a, b) => { + return a.name < b.name; + }); themes.forEach((theme) => { themeCommands.list.push({ id: "changeTheme" + Misc.capitalizeFirstLetter(theme.name),