In all cases where a person is required to keep the peace, the circuit, district or municipal court judge may order the costs of the prosecution, or any part thereof, to be paid judge other than a judge of an appellate or circuit court issue for the collection of the same.