From ee991ae59d71c0bee9d366572f4d38526763d6eb Mon Sep 17 00:00:00 2001 From: Dan Percic Date: Thu, 29 Jul 2021 00:03:01 +0300 Subject: [PATCH] fix status sorter --- apps/red-ui/src/app/utils/sorters/status-sorter.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/red-ui/src/app/utils/sorters/status-sorter.ts b/apps/red-ui/src/app/utils/sorters/status-sorter.ts index bb840b6ef..1e826c787 100644 --- a/apps/red-ui/src/app/utils/sorters/status-sorter.ts +++ b/apps/red-ui/src/app/utils/sorters/status-sorter.ts @@ -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 = {