At the moment, before clustering the body of the heatmap is ordered so that group1 comes first and group2 comes after. Then things are rearranged. In order for the col_side_colors to match up, they must start out in the same order. See recent gitlab commits.