Rev 20:13

13 The sea gave up the dead who were in it. Death and Hades gave up the dead who were in them. They were judged, each one according to his works.

the sea gave up the dead – the sea throughout Revelation refers to baptism/salvation. These are the saved who resurrect.

death and hades gave up their dead – that is the unsaved.