“Avengers: Endgame” has overtaken “Avatar” to become the highest grossing movie of all time.