Hi,
When resource has eventLayout "stack", overlapping events are sorted by startDate by default.
What we would like to do, is to sort them by the OrderNumber value (shown in the image), so that events and predecessors would only be sorted by that value when overlapping and startDate would be ignored. The preferred outcome would look like this:
We already tried using groupBy, but for our case it would take too much space.
When using custom overlappingEventSorter function:
function customSorter(a, b) {
return a.orderNumber - b.orderNumber;
}
We get the following sort:
It seems that overlappingEventSorter doesn't sort just the overlapping events but all events on the timeline. Would it be possible to use overlappingEventSorter to only sort the overlapping events to achieve the desired result?
Alternatively, overlappingEventSorter examples only show returning either negative or positive value. When sorting predecessors and successors of a same orderNumber, would it be possible for example to return 0, and not sort them above and below each other as in image 3.