added simple function to exported sorted data from a heatmap object