I saw the dead, both important and unimportant people, standing in front of the throne.
Books were opened, including the Book of Life. The dead were judged on the basis of what they had done, as recorded in the books.
The sea gave up its dead. Death and hell gave up their dead. People were judged based on what they had done.
Death and hell were thrown into the fiery lake. (The fiery lake is the second death.) Those whose names were not found in the Book of Life were thrown into the fiery lake.