From 73f8947865be710d941413ffaddcf7b4b9180e8f Mon Sep 17 00:00:00 2001 From: Hannah Vernon Date: Thu, 26 Feb 2026 16:07:30 -0600 Subject: [PATCH 1/2] Added default sort by 'DisplayName' to the server list. --- Dashboard/MainWindow.xaml.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Dashboard/MainWindow.xaml.cs b/Dashboard/MainWindow.xaml.cs index 0836a4ef..be8ab37b 100644 --- a/Dashboard/MainWindow.xaml.cs +++ b/Dashboard/MainWindow.xaml.cs @@ -24,6 +24,8 @@ using PerformanceMonitorDashboard.Controls; using PerformanceMonitorDashboard.Helpers; using PerformanceMonitorDashboard.Services; +using System.ComponentModel; +using System.Windows.Data; namespace PerformanceMonitorDashboard { @@ -348,6 +350,9 @@ private void LoadServerList() _serverListItems.Add(new ServerListItem(server, status)); } + // Add default sort for the list of servers by server display name. + _serverListItems.OrderBy(s => s.DisplayName).ToList().ForEach(s => _serverListItems.Move(_serverListItems.IndexOf(s), _serverListItems.Count - 1)); + // Also refresh the landing page if it exists if (_landingPage != null) { From 96ad0db8a816e36b13dd611a3f7c4277028e1973 Mon Sep 17 00:00:00 2001 From: Hannah Vernon Date: Thu, 26 Feb 2026 17:04:51 -0600 Subject: [PATCH 2/2] Added sorting of Server Health Cards to the LandingPage in the Full Dashboard. --- Dashboard/Controls/LandingPage.xaml.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dashboard/Controls/LandingPage.xaml.cs b/Dashboard/Controls/LandingPage.xaml.cs index 3e35e23a..b0816dee 100644 --- a/Dashboard/Controls/LandingPage.xaml.cs +++ b/Dashboard/Controls/LandingPage.xaml.cs @@ -82,6 +82,9 @@ private void LoadServers() _serverHealthStatuses.Add(new ServerHealthStatus(server)); } + // Sort servers alphabetically by display name + _serverHealthStatuses.OrderBy(s => s.Server.DisplayName).ToList().ForEach(s => _serverHealthStatuses.Move(_serverHealthStatuses.IndexOf(s), _serverHealthStatuses.Count - 1)); + UpdateSubtitle(); UpdateEmptyState(); }