Sort instead of Order

This commit is contained in:
Tobias Berger 2025-12-11 12:44:50 +01:00
parent f167435cfc
commit e23d6f3ba7
No known key found for this signature in database
GPG Key ID: 2D05EFAB764D6A88
1 changed files with 3 additions and 1 deletions

View File

@ -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);