Notwithstanding any other provision of the law to the contrary, whenever a court orders a person detained for involuntary treatment or rehabilitation in an alcohol or drug abuse facility operated by the department, or such a facility affiliated and under contract with the department to serve the service area involved, the order of detention shall be to the custody of the director of the department, who shall determine where detention for involuntary treatment and rehabilitation shall take place in the least restricted environment.
§ 631.155, RSMo