A Sheriff in the US is also usually a county or city official, which are traditionally elected. There are exceptions, however, the Sheriff of New York City is directly appointed by the mayor. The duties of the Sheriff are relatively static, and usually uncoupled from the efforts of appointed law enforcement officials. More @Wikipedia
Hover over any link to get a description of the article. Please note that search keywords are sometimes hidden within the full article and don't appear in the description or title.