fix team history page event sorting issue