bryntum / support

An issues-only repository for the Bryntum project management component suite which includes powerful Grid, Scheduler, Calendar, Kanban Task Board and Gantt chart components all built in pure JS / CSS / TypeScript
https://www.bryntum.com
54 stars 6 forks source link

Confirmation regarding overlappingEventSorter function #9940

Open marciogurka opened 2 months ago

marciogurka commented 2 months ago

Forum post

"I need help understanding how Scheduler.view.mixin.SchedulerEventRendering#config-overlappingEventSorter works

I've defined a simple sort by id function

    overlappingEventSorter: (a: any, b: any) => {
        console.log('custom sort');
        return a.id - b.id;
    }

yet the result is not what I expect (see sort.png). Event name is equal to event id. I would expect either 1,2,3 / 4,5,6 or 1,2,3,4,5,6 each event on separate row. How can I achieve 1,2,3 / 4,5,6 sorting? sort.png"

Live example https://codepen.io/marciogurka/pen/zYVMGPB

Is it expected to have the order being set as 1 2 3 / 4 5 6, because the sorter is using the id comparison?

RytisLT commented 2 months ago

another example: https://codepen.io/rytis-i/pen/KKjrgMQ

RytisLT commented 1 month ago

any updates on the issue?