Is it impossible to use ES metric: raw data with sorting?

Hello!
Is it impossible to use ES metric: raw data with sorting?
It seems to have been resolved in this issue below, but i can’t find the function. (Grafana version 8.0.3)

Hi,

The fact is, in version 8.1.4 there is transform function that can do sort, find Sort by.

Regards,
Fadjar Tandabawana

1 Like

@fadjar340
Thank you very much!
I need to update my grafana version quickly!

Thank you.

Sorry, but from my understanding, the transform function process data AFTER receiving from datasource, so the Sort would be only on last records defined by the size parameter in grafana.

So still don’t know how to achieve it (a backend side sort for elasticsearch datasource in raw_data mode).

Some info here : Elasticsearch: metric raw document sort · Issue #23991 · grafana/grafana · GitHub

But I still can’t figure how to achieve it