Sorts timeslots by startTime

main
Filip Borum Poulsen 3 years ago
parent 810f80151d
commit b2587004bc

@ -204,6 +204,8 @@ router.get("/timeslot", async (req: Request, res: Response) => {
}
}
trainerWithAvailableTimeslots.timeslots.sort((a,b)=>a.startDate.localeCompare(b.startDate));
trainers.push(trainerWithAvailableTimeslots);
}

Loading…
Cancel
Save