Breach of a court order can be civil contempt of court, and a warrant for the person's arrest may be issued.
If a legislature lacks a quorum, many jurisdictions allow the members present the power to order a call of the house, which orders the arrest of the members who are not present.