Fix ordering of skins not working as expected (#36772)

As mentioned
[here](https://github.com/ppy/osu/pull/11536#issuecomment-3977314909).

Realm ordering is weird/broken so let's just do it at our end.
This commit is contained in:
Dean Herbert
2026-03-03 14:03:55 +09:00
committed by GitHub
parent d27d0f40c1
commit d60a12a351

View File

@@ -158,11 +158,11 @@ namespace osu.Game.Skinning
var userSkins = realm.All<SkinInfo>()
.Where(s => !s.DeletePending && !s.Protected)
.OrderBy(s => s.Name, StringComparer.OrdinalIgnoreCase)
.AsEnumerable()
.OrderBy(s => s.Name, StringComparer.OrdinalIgnoreCase)
.Select(s => s.ToLive(Realm));
foreach (var s in userSkins.Where(s => !s.Value.Protected))
foreach (var s in userSkins)
skins.Add(s);
});