the choice of a treatment for a sleep disorder depends on the patient's diagnosis, his/her medical and psychiatric history, and how she or he prefers to be treated. medications sometimes work fast. on the other hand, sometimes behavioral treatment of insomnia may give more lasting results.