From 963cf9a38bd87270fd06d91dfd147358c89e1634 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Wed, 23 Apr 2025 10:03:02 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/14176 --- app/src/menus/workspace.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/menus/workspace.ts b/app/src/menus/workspace.ts index fabf8d7aa..252886780 100644 --- a/app/src/menus/workspace.ts +++ b/app/src/menus/workspace.ts @@ -354,7 +354,7 @@ export const workspaceMenu = (app: App, rect: DOMRect) => { const genListHTML = () => { let html = ""; window.siyuan.storage[Constants.LOCAL_LAYOUTS].sort((a: ISaveLayout, b: ISaveLayout) => { - return b.name > a.name ? -1 : 1; + return a.name.localeCompare(b.name, undefined, {numeric:true}); }).forEach((item: ISaveLayout) => { if (inputElement.value === "" || item.name.toLowerCase().indexOf(inputElement.value.toLowerCase()) > -1) { html += `