If ``events`` was a set you wouldn't have to sort it later