From ce051841084a1e5c88c5d29b7c08a447a69b2045 Mon Sep 17 00:00:00 2001 From: "grafana-delivery-bot[bot]" <132647405+grafana-delivery-bot[bot]@users.noreply.github.com> Date: Wed, 29 May 2024 18:03:07 +0300 Subject: [PATCH] [v11.0.x] LogsTable: Fix default sort by time (#88434) LogsTable: Fix default sort by time (#88398) (cherry picked from commit f81e8e04aa012b3d136fcf64e21bb35eef42fdf9) Co-authored-by: Sven Grossmann --- 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 }, + ]} /> ); }