get_heatmap_order function

Return the row or column ordering present in a heatmap