From 6f951545c15239485f36cd22a2ee73c7508c9538 Mon Sep 17 00:00:00 2001 From: Jan-Hendrik Willms <tleilax+github@gmail.com> Date: Sat, 11 Mar 2023 09:52:26 +0100 Subject: [PATCH] sort by name by default, re #6 --- assets/script.js | 4 ++++ plugin.manifest | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/assets/script.js b/assets/script.js index 901d1cb..31834ea 100644 --- a/assets/script.js +++ b/assets/script.js @@ -189,6 +189,10 @@ return b.hex.localeCompare(a.hex); } }); + } else { + colors = colors.sort((a, b) => { + return a.name.localeCompare(b.name); + }) } return colors; } diff --git a/plugin.manifest b/plugin.manifest index a438619..4ab2ab0 100644 --- a/plugin.manifest +++ b/plugin.manifest @@ -1,5 +1,5 @@ pluginname=Colorscheme Picker pluginclassname=Colorschemepicker origin=UOL -version=2.3 +version=2.3.1 studipMinVersion=4.5 -- GitLab