mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2024-09-23 00:37:29 +08:00
sorting themes
This commit is contained in:
parent
cc172ebbb2
commit
7007995f11
|
@ -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),
|
||||
|
|
Loading…
Reference in a new issue