From c864e8a72e6ebd8172cd2f676642d16650501f5e Mon Sep 17 00:00:00 2001 From: eoineoineoin Date: Thu, 19 Jan 2023 03:02:45 +0000 Subject: [PATCH] Sort entries in crew monitoring console by name (#13447) Co-authored-by: Eoin Mcloughlin --- .../Medical/CrewMonitoring/CrewMonitoringWindow.xaml.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Content.Client/Medical/CrewMonitoring/CrewMonitoringWindow.xaml.cs b/Content.Client/Medical/CrewMonitoring/CrewMonitoringWindow.xaml.cs index 3abf9121dd..1df2840402 100644 --- a/Content.Client/Medical/CrewMonitoring/CrewMonitoringWindow.xaml.cs +++ b/Content.Client/Medical/CrewMonitoring/CrewMonitoringWindow.xaml.cs @@ -1,3 +1,4 @@ +using System.Linq; using Content.Client.UserInterface.Controls; using Content.Shared.Medical.SuitSensor; using Robust.Client.AutoGenerated; @@ -38,7 +39,7 @@ namespace Content.Client.Medical.CrewMonitoring // TODO make each row a xaml-control. Get rid of some of this c# control creation. // add a row for each sensor - foreach (var sensor in stSensors) + foreach (var sensor in stSensors.OrderBy(a => a.Name)) { // add users name and job // format: UserName (Job)