Does cannabis treat insomnia

Does cannabis treat insomnia and sleep disorder? Mmj Doctor