IO-1458 Production Board Sort Order

This commit is contained in:
Patrick Fic
2021-10-12 13:49:32 -07:00
parent 10654b7916
commit 0b98d04bac
8 changed files with 211 additions and 198 deletions

View File

@@ -11,3 +11,10 @@ export function alphaSort(a, b) {
export function dateSort(a, b) {
return new Date(b) - new Date(a);
}
export function statusSort(a, b, statusList) {
return (
statusList.findIndex((x) => x === a) > statusList.findIndex((x) => x === b)
);
//return (a ? a.toLowerCase() : "").localeCompare(b ? b.toLowerCase() : "");
}