2. The number of hours of sleep may be important, but so is the quality of that sleep. For example, sleep apnea, a condition which tends to be more common in those who are overweight, can interfere with the quality of the person's sleep, so that even after what seems like 8 hours of sleep, they still are tired and worn out.
Cortisol is another hormone associated with appetite and weight loss and weight gain. Surely you have seen the ads in which it is referred to as "nasty". In actuality, it is nothing of the sort any more than blood is "nasty". It serves a purpose, in fact several purposes, but it is out of place in many of our modern situations, and the over production of cortisol can influence weight gain, and hamper attempts at weight loss.
Failure to get the proper amount, and quality, of sleep tends to increase the production of cortisol, contributing to the body's mistaken attempt to compensate for what it sees as an attack. Most real attacks would require vast expenditures of energy which would need to be replaced, so, cortisol signals the body to ingest large quantities of food to help replace the missing energy and perform repairs to the body. The problem is that if no energy has been expended, and you are merely suffering from lack of sleep, the body is going to get the same message as if you had escaped an attack, and the food taken in will just be stored as fat rather than being used to replace missing energy stores.
While this seems like a vicious cycle, and it is, it is not unbreakable. No one immediate action is likely to have you waking up tomorrow fit as a fiddle and twenty pounds lighter, but you can take steps to slow down the hamster wheel and eventually get off for good.
Go to bed a little earlier. Turn the TV off sooner. Learn a little bit about meditation. Take a walk. Lift that bag of sugar a couple of extra times (in each hand) before you put it in the cupboard. Park a few feet further away from your office or the grocery store than you did last time. You learned to walk one step at a time, and you fell down a lot, but you didn't let it bother you and you kept on until you finally achieved your goal and tottered a few feet on your own (and slept like...well...a baby). Don't let this get in your way either.