Keep reagent dispenser inventory ordered (#24304)

* Keep reagent dispenser inventory ordered

This way, reagents wont be "moving around" in the UI when juggling
jugs.

The reagent dispensers will also show what reagents their storage
slots contain if jugs are not labelled.

* Move sorting client-side

* Revert "Keep reagent dispenser inventory ordered"

This reverts commit 3a1fc2e36d593937d4ecc581ae5a617a273a9d1c.
This commit is contained in:
Guillaume E
2024-01-27 13:06:39 +01:00
committed by GitHub
parent eca3d0b273
commit 4ee7349514

View File

@@ -58,6 +58,8 @@ namespace Content.Client.Chemistry.UI
return;
ChemicalList.Children.Clear();
//Sort inventory by reagentLabel
inventory.Sort((x, y) => x.Value.Key.CompareTo(y.Value.Key));
foreach (KeyValuePair<string, KeyValuePair<string, string>> entry in inventory)
{