API: Implement sorting of Event results