sort by userId, sorting order needs to be stable

This commit is contained in:
Bruno Windels 2023-01-23 15:35:28 +01:00
parent 3bb889ed9c
commit af5cc0f62b

View File

@ -51,7 +51,7 @@ export class CallTile extends SimpleTile {
emitChange,
mediaRepository: this.getOption("room").mediaRepository
})),
).sortValues((a, b) => a.avatarTitle < b.avatarTitle ? -1 : 1);
).sortValues((a, b) => a.userId.localeCompare(b.userId));
}
get confId() {
@ -118,6 +118,10 @@ class MemberAvatarViewModel extends ViewModel {
return this.getOption("member");
}
get userId() {
return this._member.userId;
}
get avatarLetter() {
return avatarInitials(this._member.member.name);
}