]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix species not being ordered alphabetically in the character customization UI (...
authorDrSmugleaf <10968691+DrSmugleaf@users.noreply.github.com>
Sun, 12 Oct 2025 10:54:37 +0000 (03:54 -0700)
committerGitHub <noreply@github.com>
Sun, 12 Oct 2025 10:54:37 +0000 (10:54 +0000)
* Fix species not being ordered alphabetically in the character customization UI

* Update Content.Client/Lobby/UI/HumanoidProfileEditor.xaml.cs

---------

Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>
Content.Client/Lobby/UI/HumanoidProfileEditor.xaml.cs

index 821722ec358bb684979273e4dacab95f435c7494..b568491b67455c9420aa8f2441d18809f893b9f3 100644 (file)
@@ -607,6 +607,7 @@ namespace Content.Client.Lobby.UI
             _species.Clear();
 
             _species.AddRange(_prototypeManager.EnumeratePrototypes<SpeciesPrototype>().Where(o => o.RoundStart));
+            _species.Sort((a, b) => string.Compare(a.Name, b.Name, StringComparison.CurrentCultureIgnoreCase));
             var speciesIds = _species.Select(o => o.ID).ToList();
 
             for (var i = 0; i < _species.Count; i++)