Passage
in like manner also the second, and the third, unto the seventh,
in like manner also the second, and the third, unto the seventh,
Matthew 22:24 `Teacher, Moses said, If any one may die not having children, his brother shall marry his wife, and shall raise up seed to his brother.
Matthew 22:25 `And there were with us seven brothers, and the first having married did die, and not having seed, he left his wife to his brother;
Matthew 22:26 in like manner also the second, and the third, unto the seventh,
Matthew 22:27 and last of all died also the woman;
Matthew 22:28 therefore in the rising again, of which of the seven shall she be wife--for all had her?'
The verse centers on "like", "manner", "second", "third", and "seventh". It is saying that the verse draws attention to "like" and "manner", so its meaning should be read from those terms before moving to application.
The nearby context moves from verse 25's "And there were with us seven brothers..." into verse 27's "and last of all died also the...", so "like" and "manner" belong inside that flow. In Matthew context, the local focus is Christ, faith, and discipleship.
A plain takeaway is to answer the verse's own emphasis on "like" and "manner" with trust shaped by these words, not by a vague optimism outside the passage.