From fc0de8b7e0760e6d4f936dee62f9678608935c6e Mon Sep 17 00:00:00 2001 From: Valentin Brandl Date: Tue, 30 Jul 2024 17:33:21 +0200 Subject: [PATCH] Sort names before returning --- src/routes/names/+server.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/routes/names/+server.ts b/src/routes/names/+server.ts index c69f717..e77a5f6 100644 --- a/src/routes/names/+server.ts +++ b/src/routes/names/+server.ts @@ -6,6 +6,7 @@ export function GET() { const names = readdirSync(storagePath).filter((f) => statSync(`${storagePath}/${f}`).isDirectory() ); + names.sort() return json(names); }