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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

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