status sorter

This commit is contained in:
Timo Bejan 2020-11-17 20:36:26 +02:00
parent 72f9d1b8f0
commit 19f4a89df8

View File

@ -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 }));
}