How can I sort values on the y axis on a heatmap?

I have a heatmap with this query:

sum by(bucket) (application_stagingdataprocessingdelay_count{namespace="$namespace"})

So my data is bucketed at the source. This shows the buckets in a random order:

How can I make the order of the buckets on the y axis ascending?