EventSorter
This class contains methods to sort events into appropriate order within a day for display in all contexts.
Whenever a day's events are rendered, those events are sorted with defaultSorterFn method.
Functions
1
Functions
1defaultSorterFnstatic
This sorting method implement following rules:
- Unscheduled events go before scheduled ones
- Compare by floored start date
- If equal, compare by floored duration
- If equal, compare by start date
- If equal, compare by duration
| Parameter | Type | Description |
|---|---|---|
event1 | EventModel | EventBar | |
event2 | EventModel | EventBar |
Returns: Number