Sorting events on a day by their starting time
All checks were successful
Jenkins Production Deployment
All checks were successful
Jenkins Production Deployment
This commit is contained in:
parent
347875390f
commit
d7c9fc9265
|
@ -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()
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user