Do be clear, it doesn’t sound like she was actually arrested or actually detained at any point. The judge said he intended having her put on jail clothes and handcuffs to frighten her into taking court seriously, like a “life lesson” thing. It sounds like she mouthed off at him after he asked her to pay attention. His goal was to “scare her straight,” but he definitely should not have tried to reach her this way
Edit: I guess I’m being downvoted by people who think this judge did the right thing? Geez