Definition from Nolo’s Plain-English Law Dictionary

A judge's order sending someone to jail or prison, upon conviction or before trial (for diagnostic purposes), or directing that a mentally unstable person be confined to a mental institution. Technically, the judge orders law enforcement personnel to take the prisoner or patient to such places.

Definition provided by Nolo’s Plain-English Law Dictionary.