Sort events chronologically