Fix traveling world name, fix sorting grouped players in same instance

This commit is contained in:
Natsumi
2025-09-29 13:41:12 +13:00
parent feef537cb3
commit 9872cf1d93
6 changed files with 69 additions and 294 deletions

View File

@@ -40,6 +40,16 @@ function getFriendsSortFunction(sortMethods) {
) {
return 0;
}
// sort pending offline to bottom
if (a.pendingOffline && !b.pendingOffline) {
return 1;
}
if (a.pendingOffline && b.pendingOffline) {
return 0;
}
if (!a.pendingOffline && b.pendingOffline) {
return -1;
}
if (a.state !== 'online' || b.state !== 'online') {
return 0;
}