How to sort stacked lines by field?

Is there a way to have a persistent sorting of stacked lines in the dashboard?


The columns seem to be stacked randomly each time I render the graph, but there’s a natural order to the fields which I’d like to see represented in the graph.

Thank you!

The only option you have is to set sorting via Grafana transform.

the result might change based on the visual panel.