Sorting and ordering
By default the graphs are sorted by most relevant, where we prioritise graphs with more volatile data or the largest volume of data. For example, the graphs with the most spikes or dips will be shown first.
Some pages in Grafana Logs Drilldown can display a large number of graphs. You may want to sort the graphs differently, depending on what you’re looking for.
Sorting log lines
When viewing log lines, you can use the Sort direction control in the log controls panel to change the order logs are displayed:
- Newest logs first (descending): Shows the most recent log lines at the top.
- Oldest logs first (ascending): Shows the oldest log lines at the top.
The log controls can be accessed by clicking the expand/collapse button on the right side of the logs panel. For more information about log controls, refer to View logs.
When using infinite scroll to load more results, the sort direction determines which logs are loaded next:
- Newest logs first: Scrolling to the bottom loads older logs.
- Oldest logs first: Scrolling to the bottom loads newer logs.
Sorting visualizations

Once you select a specific label or field, you can sort the graphs. When you have the option to sort graphs, there are several different ways you can sort your log data.
Some pages let you modify the default sort order using the Sort by menu in the top right toolbar.
Note
We are keen to improve this feature, so please contact us if there is something that would help you find the signal in the noise.



