There's a lot of different levels of "sleep". Almost all of them will stop power to the analog subsystem, so analog-compare won't work. You just have to find a sleep command that won't turn off that subsystem.
Waking up enough to do an analogRead() several times per second is probably a useful alternative.