I want to sort the columns of this heatmap by the average of each column ascending from left to right (so here Boston Celtics would be the left most column, etc). It seems the default x-axis sort order is alphabetical. I've read some similar questions but none of them quite helped me figure this out.

