Events.Event.compareStartDateWithEvent
--------------------------------------

Comparison function.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Events](component_Events.md) | [6.2](newinversion62.md) | ✅ Yes | ❌ No | ❌ No | ❌ No | ✅ Yes |

MBS( "Events.Event.compareStartDateWithEvent"; EKEvent; OtherEvent ) 

**MBS**( **"Events.Event.compareStartDateWithEvent";** /\* Comparison function. \*/  
**$EKEvent**; /\* The reference to the event.e.g. $event \*/   
**$OtherEvent**) /\* The reference to the event. \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| EKEvent | The reference to the event. | $event |
| OtherEvent | The reference to the event. | $otherEvent |

### Result

Returns -1, 0, 1 or error.

### Description

Comparison function.  
Allows you to sort events.  
Returns 1 if one second event is bigger, -1 if smaller or 0 if equal.  
This function checks for a license.

Created 10th March 2016 , last changed 12nd March 2016

  
[Events.Event.Status](EventsEventStatus.md) - [Events.Event.organizer](EventsEventorganizer.md)

[HTML Version](EventsEventcompareStartDateWithEvent.shtml)