From 84c9936b7fdad41c5b441907c47a5173e2cbfb58 Mon Sep 17 00:00:00 2001 From: Eduard Klimenko Date: Tue, 9 Jan 2024 11:50:10 +0200 Subject: [PATCH] fix: https://github.com/sipcapture/homer/issues/625 used tsNs field for sorting of messages --- src/components/SimplePanel.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/SimplePanel.tsx b/src/components/SimplePanel.tsx index 9266214..64f4009 100644 --- a/src/components/SimplePanel.tsx +++ b/src/components/SimplePanel.tsx @@ -161,8 +161,8 @@ function formattingDataAndSortIt(data: any, sortType = 'none') { return unSortData; } const sortData = unSortData.sort((itemA: any, itemB: any) => { - const a = itemA.Time; - const b = itemB.Time; + const a = itemA.tsNs; + const b = itemB.tsNs; return a < b ? -1 : a > b ? 1 : 0; }); if (sortType === 'time_old') {