No Dead Actors Walking

I'm trying to find a way to stop dead party members from able to walk around on the map screen. For this to work, I need dead followers to be hidden, and for the lead (player) character to be shown as the first surviving member of the party, rather than whoever's in the first party slot.

Soo... how big a hole am I digging for myself with this one, and where should I start?

Edit: So here's where things are right now: I have a way to shove all the corpses to the back of the line (thank you again, Uzuki and Shaz) and a way to count the number of folks still standing. Now I just need some method of adjusting the number of visible followers on the fly to match the breather count.
Here's a quick solution: http://forums.rpgmakerweb.com/index.php?/topic/31575-rearrange-koed-party-members/
Thank ye very kindly. I was considering adjusting party order as well, although I was on the fence about it. It's much ore tempting now that I have the means. It will certainly help not needing to juggle out the player sprites.

That still doesn't solve everything though, as I still need a way to hide those followers even after they're at the back of the party. Otherwise they're still walking around.

Edit: Okay, figured out how to change the follower count to match a new party property, Now I just need to figure out how to get $game_party.active_battle_members to return the number of upright breathers. And it's taking a while for my brain to work. I think I may need some rest.

Edit II: ...aaand with return 2 it does not work. Back to the drawing board.

Edit III: Okay, now I have the active battle members count working but still need to make the limit apply to followers. Progress!...hopefully?

Edit IV: Updated the original post with the present situation.

Original thread: https://forums.rpgmakerweb.com/threads/no-dead-actors-walking.45350/