Training for sleep

How can I be effective at making my sleep patterns consistent?

I pay attention to what I eat and how I exercise in an effort to maximize my body's health and efficiency. In many of the articles that I read, quality sleep is mentioned as essential to enabling recovery and performance but I have not found a great article on actually accomplishing these tasks.

Much like getting into new habits with diet and exercise, getting into better sleep habits is not an immediate switch. The task does not matter (diet, exercise, sleep, etc). The methods for successfully changing or swapping habits can be generalized for any habit.

Perhaps it's just a subjective point-of-view, but it seems to me that most people have an inconsistent sleep habit. Some nights are good and some are bad, but with majority being bad.