sorting themes

This commit is contained in:
Jack 2021-08-07 15:49:59 +01:00
parent cc172ebbb2
commit 7007995f11

View file

@ -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),