From f81e8e04aa012b3d136fcf64e21bb35eef42fdf9 Mon Sep 17 00:00:00 2001 From: Sven Grossmann Date: Wed, 29 May 2024 16:46:26 +0200 Subject: [PATCH] LogsTable: Fix default sort by time (#88398) --- public/app/features/explore/Logs/LogsTable.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/public/app/features/explore/Logs/LogsTable.tsx b/public/app/features/explore/Logs/LogsTable.tsx index 8f50a8d8ba8..107045ffe79 100644 --- a/public/app/features/explore/Logs/LogsTable.tsx +++ b/public/app/features/explore/Logs/LogsTable.tsx @@ -174,6 +174,9 @@ export function LogsTable(props: Props) { onCellFilterAdded={props.onClickFilterLabel && props.onClickFilterOutLabel ? onCellFilterAdded : undefined} height={props.height} footerOptions={{ show: true, reducer: ['count'], countRows: true }} + initialSortBy={[ + { displayName: logsFrame?.timeField.name || '', desc: logsSortOrder === LogsSortOrder.Descending }, + ]} /> ); }