Unless things have changed in the hiring process, once you have passed all your testing and oral meetings, city departments hire you by how you scored. The higher your total score the higher you’re on the hiring list. Cities must hire from the top of the list to the bottom or until everyone is hire or the list expires.
The Sheriff Department you still need to pass everything, BUT the Sheriff chooses who he/she wants to hire from the list. You could be at the bottom of the list and get hired first by the sheriff.
State Police I have no idea, I would guess the same way the cities departments handle the list.