Returns a SortEvent that orders the events based on a string in each
event. A function must be supplied which takes an event of type T
and
returns a string.
A function which returns a string from the event.
A sorter which sorts strings alphabetically.
Sorts the two events placing the shorter events before the longer events. Full day or multiple day events actually take up a day and will be ordered last.
The first event.
The second event.
The difference in milliseconds between a
and b
.
Sorts the two events by their end time - the earliest to end being first in order.
The first event.
The second event.
The difference in time between the end of a
and b
.
Sorts the two events placing the full day events before the timed events.
The first event.
The second event.
If both are timed or both are full day then 0
is returned,
otherwise -1
is returned if a
is full day and 1
is returned if
b
is full day.
Returns a SortEvent that orders events based on an array of sorters. The first sorter which returns a non-zero result is used.
A list of sorting functions to test one at a time.
A sorter which sorts based on a list of sorters.
Returns a SortEvent that orders events based on a number in each event.
A function must be supplied which takes an event of type T
and returns
a number.
A function which returns a number from the event.
A sorter which sorts events based on a number in ascending order.
Sorts the two events by their start time - the earliest event being first in order.
The first event.
The second event.
The difference in time between the start of a
and b
.
Generated using TypeDoc
A class with SortEvent functions and functions which accept other SortEvents and return a new SortEvent.
// Sorts full day events first, then events in descending order based on start time. Sorts.List([Sorts.FullDay, Sorts.Desc(Sorts.Start)]);