Instance Method

compareStartDate(with:)

Compares the start date of the receiving event with the start date of another event.

Declaration

func compareStartDate(with other: EKEvent) -> ComparisonResult

Parameters

other

The event to compare against.

Return Value

Discussion

You can pass the selector for this method to the NSArray method sortedArray(using:) to create an array of events sorted by start date.