Order collections by name, order character collections by character.

This commit is contained in:
Ottermandias 2022-05-20 13:58:14 +02:00
parent 9bceed3d57
commit 12837bbdca
2 changed files with 2 additions and 2 deletions

View file

@ -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 );

View file

@ -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 ) )