IO-1458 Production Board Sort Order
This commit is contained in:
@@ -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() : "");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user