From f8867451df3874ff228231b7be25b071a5ca41c0 Mon Sep 17 00:00:00 2001 From: andrej romanov <50377758+auumgn@users.noreply.github.com> Date: Fri, 17 May 2024 13:54:15 +0300 Subject: [PATCH] sort affiliations by email --- ui/src/app/affiliation/affiliations.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/app/affiliation/affiliations.component.ts b/ui/src/app/affiliation/affiliations.component.ts index e646ab505..548d69bd7 100644 --- a/ui/src/app/affiliation/affiliations.component.ts +++ b/ui/src/app/affiliation/affiliations.component.ts @@ -96,7 +96,7 @@ export class AffiliationsComponent implements OnInit, OnDestroy { this.routeData = this.activatedRoute.data.subscribe((data) => { this.page = data['queryParams'] ? data['queryParams'].page : 1 this.ascending = data['queryParams'] ? data['queryParams'].page.sort.split(',')[1] : true - this.sortColumn = data['queryParams'] ? data['queryParams'].page.sort.split(',')[0] : 'id' + this.sortColumn = data['queryParams'] ? data['queryParams'].page.sort.split(',')[0] : 'email' this.loadAll() }) }