uses latest version of heatmapData with multi-step sorting