gdoteof/election — Issue #13: Order Election Results By Votes
Author: bradley-holt
Created: 2012-02-14 21:30:40+00:00
State: open
Labels: HTML, JSON

### Description

Results for elections should be ordered by the number of votes, with the highest vote-getting candidate first.

### Steps to Reproduce

curl 'https://example.org/town-meeting-season-2011/city-of-burlington/burlington-mayor' \
-H 'Accept: application/json'

### Actual Results

```json
{
"title":"Burlington Mayor",
…
"results":{
"Miro_Weinberger":{
"votes":121,
"complete":false
},
"Bob_Kiss":{
"votes":232,
"complete":false
},
"Kurt_Wright":{
"votes":156,
"complete":false
}
}
}
```

### Expected Results

```json
{
"title":"Burlington Mayor",
…
"results":{
"Bob_Kiss":{
"votes":232,
"complete":false
},
"Kurt_Wright":{
"votes":156,
"complete":false
},
"Miro_Weinberger":{
"votes":121,
"complete":false
}
}
}
```

### Additional Comments

This order should be the same in HTML as well. For referendums, the "Yes" option should always be first followed by the "No" option (this appears to be correct everywhere I looked).