fix user_events sorting