Hi Team
I am trying to sort events based on name in the overflow popup for day, week and Month view
Tried using EventSorter functions interDaySorterFn, defaultSorterFn to override the default sorting, but its not working.
<BryntumCalendar
autoCreate={false}
dragFeature={false}
listeners = {{
beforeShowOverflowPopup(event:any) {
EventSorter.defaultSorterFn= (event1,event2) => {
event1 = event1.eventRecord || event1;
event2 = event2.eventRecord || event2;
const {
name: name1
} = event1,
{
name: name2
} = event2;
if(name1 < name2){
return -1;
}else if(name1 > name2){
return 1;
}else{
return 0;
}
}
}
}}
/>