From eaf1924e5580a919342081fc9a30525906094b61 Mon Sep 17 00:00:00 2001 From: purian23 Date: Tue, 24 Feb 2026 18:31:27 -0500 Subject: [PATCH] dbar: Sort layout items by Position & ID --- quickshell/DMSShell.qml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/quickshell/DMSShell.qml b/quickshell/DMSShell.qml index 8641c816..7e86ee97 100644 --- a/quickshell/DMSShell.qml +++ b/quickshell/DMSShell.qml @@ -162,7 +162,10 @@ Item { })).sort((a, b) => { const aVertical = a.position === SettingsData.Position.Left || a.position === SettingsData.Position.Right; const bVertical = b.position === SettingsData.Position.Left || b.position === SettingsData.Position.Right; - return aVertical - bVertical; + if (aVertical !== bVertical) { + return aVertical - bVertical; + } + return String(a.id).localeCompare(String(b.id)); }); return JSON.stringify(mapped); }