It wouldn’t matter if it was his jurisdiction. The sheriff puts people in the county jail who have been convicted in municipal, county or state courts.
Yes, it does matter.
He went to county jail, but that doesn't mean the county sheriff did the prosecuting. It was a city infraction.