]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Sort ID card console jobs (#14588)
authormetalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
Sun, 12 Mar 2023 23:40:17 +0000 (10:40 +1100)
committerGitHub <noreply@github.com>
Sun, 12 Mar 2023 23:40:17 +0000 (16:40 -0700)
Content.Client/Access/UI/IdCardConsoleWindow.xaml.cs

index 66e84378415deafc94c19d5387b0fb0319aa29b7..a0c259301f59ce9d72adf6bc54d6a0aca4ca383d 100644 (file)
@@ -50,7 +50,8 @@ namespace Content.Client.Access.UI
             };
             JobTitleSaveButton.OnPressed += _ => SubmitData();
 
-            var jobs = _prototypeManager.EnumeratePrototypes<JobPrototype>();
+            var jobs = _prototypeManager.EnumeratePrototypes<JobPrototype>().ToList();
+            jobs.Sort((x, y) => string.Compare(x.LocalizedName, y.LocalizedName, StringComparison.CurrentCulture));
 
             foreach (var job in jobs)
             {