From 19f4a89df8fc4a9f0127e507b4929d617eb4afd3 Mon Sep 17 00:00:00 2001 From: Timo Bejan Date: Tue, 17 Nov 2020 20:36:26 +0200 Subject: [PATCH] status sorter --- .../project-listing-screen/project-listing-screen.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/red-ui/src/app/screens/project-listing-screen/project-listing-screen.component.ts b/apps/red-ui/src/app/screens/project-listing-screen/project-listing-screen.component.ts index 5e91f8c52..408bf3358 100644 --- a/apps/red-ui/src/app/screens/project-listing-screen/project-listing-screen.component.ts +++ b/apps/red-ui/src/app/screens/project-listing-screen/project-listing-screen.component.ts @@ -161,7 +161,7 @@ export class ProjectListingScreenComponent implements OnInit, OnDestroy { }, {}); return Object.keys(obj) - .sort() + .sort((a, b) => StatusSorter[a] - StatusSorter[b]) .map((status) => ({ length: obj[status], color: status })); }