From 6c833988fcf426cada3a0de893252685602add86 Mon Sep 17 00:00:00 2001 From: Tal Borenstein Date: Wed, 6 Mar 2024 17:54:22 +0200 Subject: [PATCH] feat(ui): show mapping rules in desc order --- keep-ui/app/mapping/rules-table.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/keep-ui/app/mapping/rules-table.tsx b/keep-ui/app/mapping/rules-table.tsx index c26f93a89..6eeafa14c 100644 --- a/keep-ui/app/mapping/rules-table.tsx +++ b/keep-ui/app/mapping/rules-table.tsx @@ -89,7 +89,7 @@ export default function RulesTable({ mappings }: { mappings: MappingRule[] }) { const table = useReactTable({ columns, - data: mappings, + data: mappings.sort((a, b) => b.priority - a.priority), getCoreRowModel: getCoreRowModel(), });