Events ordering + filtering by endTime