Order right-click context collections by name.

This commit is contained in:
Ottermandias 2023-05-09 17:30:04 +02:00
parent 5ba43c1b19
commit e4e74376fc

View file

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