compareOwnerFirstThenName 'this' not defined
This commit is contained in:
parent
65617c1538
commit
c2ea700011
@ -36,7 +36,7 @@ export class Group {
|
||||
}
|
||||
|
||||
usersByNameOwnerFirst() {
|
||||
return this.users.sort(this.compareOwnerFirstThenName);
|
||||
return this.users.sort((a, b) => this.compareOwnerFirstThenName(a, b));
|
||||
}
|
||||
|
||||
private compareOwnerFirstThenName(a: UserPublic, b: UserPublic): number {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user