1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-12 00:02:57 +08:00

Force alphabetical ordering for now

This commit is contained in:
Dean Herbert 2022-07-28 14:07:42 +09:00
parent da06467891
commit 392cb352cc
2 changed files with 2 additions and 2 deletions

View File

@ -53,7 +53,7 @@ namespace osu.Game.Collections
{ {
base.LoadComplete(); base.LoadComplete();
realmSubscription = realm.RegisterForNotifications(r => r.All<BeatmapCollection>(), collectionsChanged); realmSubscription = realm.RegisterForNotifications(r => r.All<BeatmapCollection>().OrderBy(c => c.Name), collectionsChanged);
Current.BindValueChanged(selectionChanged); Current.BindValueChanged(selectionChanged);
} }

View File

@ -38,7 +38,7 @@ namespace osu.Game.Collections
{ {
base.LoadComplete(); base.LoadComplete();
realmSubscription = realm.RegisterForNotifications(r => r.All<BeatmapCollection>(), collectionsChanged); realmSubscription = realm.RegisterForNotifications(r => r.All<BeatmapCollection>().OrderBy(c => c.Name), collectionsChanged);
} }
private void collectionsChanged(IRealmCollection<BeatmapCollection> collections, ChangeSet? changes, Exception error) private void collectionsChanged(IRealmCollection<BeatmapCollection> collections, ChangeSet? changes, Exception error)