From e4e74376fc868f558a8f1fa9c150b845e155eeaa Mon Sep 17 00:00:00 2001 From: Ottermandias Date: Tue, 9 May 2023 17:30:04 +0200 Subject: [PATCH] Order right-click context collections by name. --- Penumbra/UI/CollectionTab/CollectionPanel.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Penumbra/UI/CollectionTab/CollectionPanel.cs b/Penumbra/UI/CollectionTab/CollectionPanel.cs index 86742b3d..1774cf1d 100644 --- a/Penumbra/UI/CollectionTab/CollectionPanel.cs +++ b/Penumbra/UI/CollectionTab/CollectionPanel.cs @@ -237,7 +237,7 @@ public sealed class CollectionPanel : IDisposable _active.SetCollection(null, type, _active.Individuals.GetGroup(identifier)); } - foreach (var coll in _collections) + foreach (var coll in _collections.OrderBy(c => c.Name)) { if (coll != collection && ImGui.MenuItem($"Use {coll.Name}.")) _active.SetCollection(coll, type, _active.Individuals.GetGroup(identifier));