From b4e3a7d6ffc18c58a780d4d91340dc70f7d692a4 Mon Sep 17 00:00:00 2001 From: igurielidze Date: Sat, 21 Mar 2026 18:46:10 +0400 Subject: [PATCH] Always sort IDs tab ascending by device type, not just when searching Co-Authored-By: Claude Opus 4.6 (1M context) --- svelte-app/src/components/DeviceDock.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/svelte-app/src/components/DeviceDock.svelte b/svelte-app/src/components/DeviceDock.svelte index b8de5c9..3854ce3 100644 --- a/svelte-app/src/components/DeviceDock.svelte +++ b/svelte-app/src/components/DeviceDock.svelte @@ -82,9 +82,9 @@ if (idSearchQuery.trim()) { const q = idSearchQuery.trim().toLowerCase(); ids = ids.filter(d => d.id.toLowerCase().includes(q) || d.svg.toLowerCase().includes(q)); - // Sort ascending by device type (svg suffix) - ids.sort((a, b) => a.svg.localeCompare(b.svg) || a.id.localeCompare(b.id)); } + // Always sort ascending by device type, then by ID + ids.sort((a, b) => a.svg.localeCompare(b.svg) || a.id.localeCompare(b.id)); return ids; });