Re-fixed the date sorting issue in Heat map