Clustering in scanpy plots

Hello

Thank you for this amazing package.

As I understand, dotplot matrixplot etc need us to input a set of genes which will be plotted as columns and the rows of the plot will be the groups we assigned to them eg leiden clusters.

Is it possible to cluster the columns as well just like the rows? Otherwise I have to manually change positions of the gene input.

Thank you very much!