Skip to content

Commit

Permalink
Made ChemMaster Sorted (#2498)
Browse files Browse the repository at this point in the history
* Made ChemMaster Sorted

Updated chem master xaml to sort results

* Revert "Made ChemMaster Sorted"

This reverts commit 3430d748d6d041f6303810507da2e015e873784e.

* Reverted and simplified

Reverted previous change and used code provided by whatson

* Update Content.Client/Chemistry/UI/ChemMasterWindow.xaml.cs

---------

Co-authored-by: Whatstone <[email protected]>
  • Loading branch information
2 people authored and sleepyyapril committed Dec 3, 2024
1 parent ae23313 commit ca18a63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Content.Client/Chemistry/UI/ChemMasterWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ private void UpdatePanelInfo(ChemMasterBoundUserInterfaceState state)
};
bufferHBox.AddChild(bufferVol);

foreach (var (reagent, quantity) in state.BufferReagents)
foreach (var (reagent, quantity) in state.BufferReagents.OrderBy(x => x.Reagent.Prototype)) // Frontier: add OrderBy
{
// Try to get the prototype for the given reagent. This gives us its name.
_prototypeManager.TryIndex(reagent.Prototype, out ReagentPrototype? proto);
Expand Down

0 comments on commit ca18a63

Please sign in to comment.