fix status sorter

This commit is contained in:
Dan Percic 2021-07-29 00:03:01 +03:00
parent 030e120550
commit ee991ae59d

View File

@ -5,7 +5,7 @@ const byStatus = (a: StatusSorterItem, b: StatusSorterItem) => {
const x = typeof a === 'string' ? a : a.key;
const y = typeof b === 'string' ? b : b.key;
return (StatusSorter[x] = StatusSorter[y]);
return StatusSorter[x] - StatusSorter[y];
};
export const StatusSorter = {