fix incorrect sorting of events on team details pages