I'm not sure if this would be convenient or if it is enough to use the sort parameter in the api. I don't want to make things too dependent on interactions in the GUI. Could use something similar to this from Dylan Open the Chart in the Vega Editor
Thinking about this again: I think it could be great to create a heatmap that is sortable like this.