Sort entries in crew monitoring console by name (#13447)

Co-authored-by: Eoin Mcloughlin <helloworld@eoinrul.es>
This commit is contained in:
eoineoineoin
2023-01-19 03:02:45 +00:00
committed by GitHub
parent 1b0e50ae19
commit c864e8a72e

View File

@@ -1,3 +1,4 @@
using System.Linq;
using Content.Client.UserInterface.Controls; using Content.Client.UserInterface.Controls;
using Content.Shared.Medical.SuitSensor; using Content.Shared.Medical.SuitSensor;
using Robust.Client.AutoGenerated; 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. // TODO make each row a xaml-control. Get rid of some of this c# control creation.
// add a row for each sensor // 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 // add users name and job
// format: UserName (Job) // format: UserName (Job)