Fix event time sort