From a3cf89e45547f114b6def8eae7eb419736b8cdf2 Mon Sep 17 00:00:00 2001 From: Andrew Schlackman <72105194+sei-aschlackman@users.noreply.github.com> Date: Tue, 14 Dec 2021 13:31:03 -0500 Subject: [PATCH] added sorting by team name to user presence --- .../user-presence/user-presence.component.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/components/player/user-presence-page/user-presence/user-presence.component.ts b/src/app/components/player/user-presence-page/user-presence/user-presence.component.ts index 75ce2e2b..b1db84a3 100644 --- a/src/app/components/player/user-presence-page/user-presence/user-presence.component.ts +++ b/src/app/components/player/user-presence-page/user-presence/user-presence.component.ts @@ -29,7 +29,9 @@ export class UserPresenceComponent implements OnInit, OnDestroy { ) {} ngOnInit(): void { - this._teams = this.teamService.getMyViewTeams(this.viewId); + this._teams = this.teamService + .getMyViewTeams(this.viewId) + .pipe(map((x) => x.sort(firstBy('name')))); this.notificationService.joinPresence(this.viewId); }