mirror of
https://github.com/ppy/osu.git
synced 2026-05-21 10:50:20 +08:00
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:
committed by
GitHub
Unverified
parent
d27d0f40c1
commit
d60a12a351
@@ -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);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user