From 4a4e159ee5110a795d9acbbb21b896fb244437bb Mon Sep 17 00:00:00 2001 From: umasoodch Date: Sun, 12 Apr 2020 13:45:08 +0300 Subject: [PATCH] fixed sorting issue --- Mohem/src/app/notification/home/home.component.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Mohem/src/app/notification/home/home.component.ts b/Mohem/src/app/notification/home/home.component.ts index 33bb32b3..3db98ab8 100644 --- a/Mohem/src/app/notification/home/home.component.ts +++ b/Mohem/src/app/notification/home/home.component.ts @@ -345,8 +345,10 @@ export class HomeComponent implements OnInit { arrayToFilter = this.newWorkListResponse.filter((workList) => { return workList.ITEM_TYPE === filter; }); - const sortData = this.sortArray(arrayToFilter); - this.showFormattedData = this.categorizeData(sortData); + const categorizeData = this.categorizeData(arrayToFilter); + this.showFormattedData = this.sortArray(categorizeData); + // const sortData = this.sortArray(arrayToFilter); + // this.showFormattedData = this.categorizeData(sortData); } }