How to sort expression results?

I build panel in grafana with some query and expressions for it.
Query is a metric of successful requests rate for different applications, it has only one label - applications
Now i got results in gauge bar. In the screenshot you can see results, but not sorted.

How to sort results, and output only first 3 of them?

I can change panel type to whatever that solves my task. I tried to get rid of expressions and use only query and apply sort to it. But using only query without expressions doesn’t fit my needs

Did you try Sort by transformation?

unfortunately *it doesnt fit me, because Transformation works on static values, but i have dynamic time series, set by variable applications from drop down list