It seems we have the resurrection in order.

However, my question is how and when are these categories of persons resurrected?

1. Those who died under the Old Covenant
2. Those who die in the New Covenant
3. Those who are alive at the coming of Jesus. 1Thess 4:17
4. The bible speaks of the Ressurection of the Souls beheaded for the gospel. [Rev 20:4 -5](https://www.bible.com/bible/compare/REV.20.4)

I desire answers that give an overview of major Christian positions regarding this question.