The best way to stop your hair getting too tangled is tie your hair back in a ponytail with a thin hairband (so it doesnt get in the way) when you're going to sleep.
I have long hair and my hair usually just ends up getting worse and knotting around the hair band making me spend five minutes just to break my hair and get it out.
The tips, hints and ideas at TipKing are vetted prior to publishing however some methods remain speculative in their own nature; therefore the information should be used responsibly and at your own discretion. The Information is displayed on an "As Is" basis, without warranty. Full disclaimer