From 52e30b381cdd7fcf021c39c35a361e017c8839e2 Mon Sep 17 00:00:00 2001 From: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Date: Mon, 13 Mar 2023 10:40:17 +1100 Subject: [PATCH] Sort ID card console jobs (#14588) --- Content.Client/Access/UI/IdCardConsoleWindow.xaml.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Content.Client/Access/UI/IdCardConsoleWindow.xaml.cs b/Content.Client/Access/UI/IdCardConsoleWindow.xaml.cs index 66e8437841..a0c259301f 100644 --- a/Content.Client/Access/UI/IdCardConsoleWindow.xaml.cs +++ b/Content.Client/Access/UI/IdCardConsoleWindow.xaml.cs @@ -50,7 +50,8 @@ namespace Content.Client.Access.UI }; JobTitleSaveButton.OnPressed += _ => SubmitData(); - var jobs = _prototypeManager.EnumeratePrototypes(); + var jobs = _prototypeManager.EnumeratePrototypes().ToList(); + jobs.Sort((x, y) => string.Compare(x.LocalizedName, y.LocalizedName, StringComparison.CurrentCulture)); foreach (var job in jobs) {