PAMapp/store/index.ts
@@ -115,7 +115,14 @@ @Action storeMyAppointmentReviewLog() { getMyReviewLog().then((data) => { this.context.commit('updateMyAppointmentReviewLog', data); const dataWithLatestDate = data.map((item) => { return { ...item, compareDate: new Date(item.lastModifiedDate) } }); const sortedData = dataWithLatestDate.sort((a, b) => +b.compareDate - +a.compareDate); this.context.commit('updateMyAppointmentReviewLog', sortedData); }); }