sort entities on draw
prevent the player from becoming undead