In their interminable war against marriage, the Watchtower Society keeps altering the minutes about these things. However, the best I was able to get out of it indicates that neither scenarios would result in the marriage surviving. Once your partner dies, you are free to remarry. When the partner is resurrected, that person is not only no longer married, but is no longer free to marry ever again.
If both partners die and are resurrected, then both are single when resurrected. The marriage ends when the first partner dies, and if the other dies later, the marriage is already gone. When both are resurrected, they are "as the angels" and single. Worse, neither are free to get married in that "new" order, any more than the angels that became demons were when they married earthlings. Some incentive for me to go screeching around from 5:30 AM until after midnight trying to sell this message to others.
This outlook might be out of date. It was prevailing in the early 1990s and I have heard nothing to contradict it from the Tower since. They are continually reversing their position, and might (or might have already) reverse this like they did with the resurrection of Solomon and the Sodomites. But, until and unless this is undone, I am hoping that people are deterred from ever joining the Watchtower Society by it. And, even if they later reverse it, hopefully those articles from the 1990s will embarrass them and cause them to stumble.