Sort named players above UIDs

This commit is contained in:
Loporrit
2025-02-23 12:29:29 +00:00
parent 250f61ad85
commit 57fbf2b983
3 changed files with 13 additions and 3 deletions

View File

@@ -231,6 +231,16 @@ public class Pair : DisposableMediatorSubscriberBase
return note;
}
public string GetPairSortKey()
{
string? noteOrName = GetNoteOrName();
if (noteOrName != null)
return $"0{noteOrName}";
else
return $"9{UserData.AliasOrUID}";
}
public string GetPlayerNameHash()
{
return CachedPlayer?.PlayerNameHash ?? string.Empty;