added comparator for event and events are now sorted :)