diff --git a/Content.Client/Cargo/UI/CargoConsoleMenu.xaml.cs b/Content.Client/Cargo/UI/CargoConsoleMenu.xaml.cs index c62da36b6a..9b4442dc95 100644 --- a/Content.Client/Cargo/UI/CargoConsoleMenu.xaml.cs +++ b/Content.Client/Cargo/UI/CargoConsoleMenu.xaml.cs @@ -99,8 +99,6 @@ namespace Content.Client.Cargo.UI _categoryStrings.Clear(); Categories.Clear(); - _categoryStrings.Add(Loc.GetString("cargo-console-menu-populate-categories-all-text")); - foreach (var prototype in ProductPrototypes) { if (!_categoryStrings.Contains(prototype.Category)) @@ -108,7 +106,12 @@ namespace Content.Client.Cargo.UI _categoryStrings.Add(Loc.GetString(prototype.Category)); } } + _categoryStrings.Sort(); + + // Add "All" category at the top of the list + _categoryStrings.Insert(0, Loc.GetString("cargo-console-menu-populate-categories-all-text")); + foreach (var str in _categoryStrings) { Categories.AddItem(str);