X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=dashboard%2Fwebapp-frontend%2Fsrc%2Fapp%2Fpolicy-control%2Fpolicy-instance.datasource.ts;h=53a6239e178eb4c88dbd10102c4fa179ce5aa8c6;hb=471200592f250c2de77cd4eb1a965da929f210fb;hp=c74c9ab29512457dd8c16960460958d17bd2dbe5;hpb=3185681c9af47e8ff5b235d8d6c51f8f06fd5bce;p=nonrtric.git diff --git a/dashboard/webapp-frontend/src/app/policy-control/policy-instance.datasource.ts b/dashboard/webapp-frontend/src/app/policy-control/policy-instance.datasource.ts index c74c9ab2..53a6239e 100644 --- a/dashboard/webapp-frontend/src/app/policy-control/policy-instance.datasource.ts +++ b/dashboard/webapp-frontend/src/app/policy-control/policy-instance.datasource.ts @@ -42,9 +42,9 @@ export class PolicyInstanceDataSource extends DataSource { public rowCount = 1; // hide footer during intial load constructor( - private policySvc: PolicyService, + private policySvc: PolicyService, public sort: MatSort, - private notificationService: NotificationService, + private notificationService: NotificationService, private policyType: PolicyType) { super(); } @@ -95,6 +95,6 @@ export class PolicyInstanceDataSource extends DataSource { } } -function compare(a: string, b: string, isAsc: boolean) { +function compare(a: string, b: string, isAsc: boolean) { return (a < b ? -1 : 1) * (isAsc ? 1 : -1); }