status sorter
This commit is contained in:
parent
72f9d1b8f0
commit
19f4a89df8
@ -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 }));
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user