Additional: I believe that
all US Sheriff's are elected and in many (all?) states the office is provided for under the Constitution of the State. The office of Sheriff is distinctly different from that of a Chief of Police, which is strictly an appointive position.