diff --git a/frontend/src/views/TimeRecords.vue b/frontend/src/views/TimeRecords.vue index c14792f..bb49961 100644 --- a/frontend/src/views/TimeRecords.vue +++ b/frontend/src/views/TimeRecords.vue @@ -97,7 +97,7 @@ export default { var min = time % 60; record.duration = hours + "h " + min + "min"; var start = record.startdate; - + records[index].completeStartDate = start; start = start.split("T"); records[index].startdate = start[1]; records[index].date = start[0]; @@ -110,6 +110,11 @@ export default { records[index].enddate = "pending"; } } + records.sort(function(a, b) { + a = new Date(a.completeStartDate); + b = new Date(b.completeStartDate); + return a>b ? -1 : a