Reorder dendrogram/heatmap for pl.rank_genes_groups_heatmap

Hi all,

For aesthetic purposes, I want to flip some arms of the initial dendrogram ( used for and reorder some of the clusters.

There are no parameters in either or which allow me to reorder or flip the dendrogram or the heatmap.
Does anyone have any suggestions for how I can go about doing this?

Any ideas appreciated!
Many thanks