2. Limit sugar intake. A University of California study found that elevated glucose levels are correlated with poor sleep. Another study found that men with sleeping disorders were at a higher risk for diabetes. Sugary foods undoubtedly provide a short-term energy boost, but if you want to get a good night’s sleep, then you’ll probably want to avoid sweet foods at least a few hours before bed.