Sorting orientations array in ViewDataActivity for heatmap view.