Grafana - how to sort results

Hi, on LTS I am running the following query “sort_desc(max(max_over_time(container_memory_max_usage_bytes{container=~“service-.|app-.”}[7d])) by (container))” against Prometheus DS using Bar Gauge graph, for some reason even if Prometheus returns the querry in inspector or in it’s own search instant, Grafana starts loading and loaing, eventually going back to display the result as if I didn’t use any sort at all, how can I sort result?

Worked out when I did click the instant option.