Spoiler:Sophia is still alive and well in the comics. Funny thing is there's a scene with Carl and she says "nothing bad ever happens to me", and sure enough a couple week later they discover she's dead and now a walker on the show.
Spoiler in white text: Yes, Sophia survives. She actually continues to live a fairly normal and unremarkable existence with Glenn and Maggie acting as adoptive parents. In fact, she lives as if nothing horrible actually ever happened. She calls Glenn and Maggie dad and mom, respectively. /end spoiler.