From 7b6a109ad3c306b7122d27cabe7e2a68c166ad55 Mon Sep 17 00:00:00 2001
From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>
Date: Wed, 2 Apr 2025 22:41:25 +1100
Subject: launcher: sort wallpapers and schemes

---
 src/modules/launcher/actions.tsx | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'src/modules/launcher/actions.tsx')

diff --git a/src/modules/launcher/actions.tsx b/src/modules/launcher/actions.tsx
index 03db28b..6b5df52 100644
--- a/src/modules/launcher/actions.tsx
+++ b/src/modules/launcher/actions.tsx
@@ -386,7 +386,8 @@ export default class Actions extends Widget.Box implements LauncherContent {
             const scheme = args[1] ?? "";
             const schemes = Object.values(Schemes.get_default().map)
                 .flatMap(s => (s.colours ? s.name : Object.values(s.flavours!).map(f => `${f.scheme}-${f.name}`)))
-                .filter(s => s !== undefined);
+                .filter(s => s !== undefined)
+                .sort();
             for (const { target } of fuzzysort.go(scheme, schemes, { all: true })) {
                 if (Schemes.get_default().map.hasOwnProperty(target))
                     this.#content.add(<Scheme {...Schemes.get_default().map[target]} />);
-- 
cgit v1.2.3-freya

