make sure past events get sorted