The sheriff or other law enforcement officials authorized by county charter or ordinance of such county are charged with the enforcement of all county ordinances.