Sort entries in crew monitoring console by name (#13447)
Co-authored-by: Eoin Mcloughlin <helloworld@eoinrul.es>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user