The sheriff is the top-ranking officer in the department and is almost always an elected official. The assistant sheriff or under-sheriff is the next in line of police ranks in the department, followed by division chief, captain, lieutenant, sergeant, corporal and deputy. A deputy sheriff is essentially the same rank as a police officer. 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.