There are five times where two resurrections are mentioned in the Bible. The order of sequence is always the same; first for only the “Living,” then for both “Living and Dead.” The Bible can jump from one Resurrection to another in one-two fashion without mentioning the intervening time, as three of the four do, because of the nature of “gaps” in the Bible. The Resurrections represent the bookends of the Millennium.
Dan 12:1 vs. Dan 12:2
Mt 13:24-30 vs. Mt 13:47-50
Mt 24:31 vs. Mt 25:32-33, 46
Jn 5:25 vs. Jn 5:28-29 and,
Rev 7:9; 14:1, 4; Rev 20:4-5 versus Rev 20:11-12, 15.
Because there are both Sheep and Goats, this separation applies to the second Resurrection, which happens after the Millennium is over.