Shorting array to displayed them with respect to date, Like i did - Hiking, shopping on 2020-05-10 and Hiking , Football on 2020-05-10 and similar for other dates.
const items = [ {title: 'Hiking', date: new Date('2020-05-10')}, {title: 'Shopping', date: new Date('2020-05-10')}, // {title: 'Hiking', date: new Date('2020-05-22')}, {title: 'Football', date: new Date('2019-05-22')}, // {title: 'Football', date: new Date('2020-05-28')}, {title: 'Hiking', date: new Date('2020-05-28')}, {title: 'Cricket', date: new Date('2020-05-28')},];