Ordering for events in API.