If we assume that the sleep spell suppresses consciousness, or awareness of one's surroundings, and we assume that the undead have some sort of awareness of their surroundings, then we can assume that undead would be affected by this spell.
Also, it doesn't necessarily follow that undead...