Clicking on a heatmap row randomly sorts columns and data successfully