diff --git a/Frontend/src/app/components/day/day.component.ts b/Frontend/src/app/components/day/day.component.ts index 9c436cc..f65fac8 100644 --- a/Frontend/src/app/components/day/day.component.ts +++ b/Frontend/src/app/components/day/day.component.ts @@ -18,6 +18,9 @@ export class DayComponent implements OnInit { ngOnInit(): void { this.weekDayName = ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday'][this.dayOfWeek]; + this.events = this.events.sort((a, b) => { + return new Date(a.latest_start_date.toString()).getTime() - new Date(b.latest_start_date.toString()).getTime() + }); } }