Sort ticket detail entries in descending chronological order
Closed this issue · 3 comments
Leland commented
That is, Schedule + Time entries
brian-labelle commented
Would we also sort schedule entries in descending chronological order, based on start date?
Leland commented
Definitely
brian-labelle commented
For time entries:
entries.sort((a, b) => a.timeStart > b.timeStart ? -1 : a.timeStart < b.timeStart ? 1 : 0)
For schedule entries
entries.sort((a, b) => a.dateStart > b.dateStart ? -1 : a.dateStart < b.dateStart ? 1 : 0)