Make events sort in ascending order