I can't be bother to look up the details, but my recollection was the real Sheriff Joe come up with a policy for this department in regard to racial profiling and the courts told him to change his departments policy... he refused and the judge threw him in jail.
I don't know what happened to the officers in his department or if they actually continued the policy under threat of a liability lawsuit regardless of what Sheriff Joe directed them to do. I could see SJ being the type to put his own people in that type of legal liability limbo. Also suspect he marched into court the next day and told the judge he still hadn't changed his departments policy and his own officers were the ones to arrest him.