From 12837bbdca9c4a91f83f49569e4576fc38ce9b79 Mon Sep 17 00:00:00 2001 From: Ottermandias Date: Fri, 20 May 2022 13:58:14 +0200 Subject: [PATCH] Order collections by name, order character collections by character. --- Penumbra/UI/ConfigWindow.CollectionsTab.cs | 2 +- Penumbra/UI/ConfigWindow.Misc.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Penumbra/UI/ConfigWindow.CollectionsTab.cs b/Penumbra/UI/ConfigWindow.CollectionsTab.cs index a22c3151..563017f7 100644 --- a/Penumbra/UI/ConfigWindow.CollectionsTab.cs +++ b/Penumbra/UI/ConfigWindow.CollectionsTab.cs @@ -147,7 +147,7 @@ public partial class ConfigWindow DrawDefaultCollectionSelector(); - foreach( var name in Penumbra.CollectionManager.Characters.Keys.ToArray() ) + foreach( var name in Penumbra.CollectionManager.Characters.Keys.OrderBy( k => k ).ToArray() ) { using var id = ImRaii.PushId( name ); DrawCollectionSelector( string.Empty, _window._inputTextWidth.X, ModCollection.Type.Character, true, name ); diff --git a/Penumbra/UI/ConfigWindow.Misc.cs b/Penumbra/UI/ConfigWindow.Misc.cs index cae9a870..d866a8d6 100644 --- a/Penumbra/UI/ConfigWindow.Misc.cs +++ b/Penumbra/UI/ConfigWindow.Misc.cs @@ -95,7 +95,7 @@ public partial class ConfigWindow return; } - foreach( var collection in Penumbra.CollectionManager.GetEnumeratorWithEmpty().Skip( withEmpty ? 0 : 1 ) ) + foreach( var collection in Penumbra.CollectionManager.GetEnumeratorWithEmpty().Skip( withEmpty ? 0 : 1 ).OrderBy( c => c.Name ) ) { using var id = ImRaii.PushId( collection.Index ); if( ImGui.Selectable( collection.Name, collection == current ) )