add ordering, use to reorder rows and columns in heatmap