From e23d6f3ba73879cd6e89e6acb53cdc195cf27241 Mon Sep 17 00:00:00 2001 From: Tobias Berger Date: Thu, 11 Dec 2025 12:44:50 +0100 Subject: [PATCH] Sort instead of Order --- .../_DV/CartridgeLoader/Cartridges/NanoChatLookupView.xaml.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Content.Client/_DV/CartridgeLoader/Cartridges/NanoChatLookupView.xaml.cs b/Content.Client/_DV/CartridgeLoader/Cartridges/NanoChatLookupView.xaml.cs index 620eb86e27..1f9e48ab26 100644 --- a/Content.Client/_DV/CartridgeLoader/Cartridges/NanoChatLookupView.xaml.cs +++ b/Content.Client/_DV/CartridgeLoader/Cartridges/NanoChatLookupView.xaml.cs @@ -71,6 +71,8 @@ public sealed partial class NanoChatLookupView : PanelContainer // Add contacts without departments at the end if (noDepartmentContacts.Count > 0) { + noDepartmentContacts.Sort(); + if (departmentGroups.Count > 0) { ContactsList.AddChild(new Label @@ -81,7 +83,7 @@ public sealed partial class NanoChatLookupView : PanelContainer }); } - foreach (var contact in noDepartmentContacts.Order()) + foreach (var contact in noDepartmentContacts) { var isEvenRow = rowIndex % 2 == 0; var contactControl = new ContactContainer(contact, state, isEvenRow, OnStartChat);