Closed bradley-holt closed 12 years ago
Results for elections should be ordered by the number of votes, with the highest vote-getting candidate first.
curl 'https://example.org/town-meeting-season-2011/city-of-burlington/burlington-mayor' \ -H 'Accept: application/json'
{ "title":"Burlington Mayor", … "results":{ "Miro_Weinberger":{ "votes":121, "complete":false }, "Bob_Kiss":{ "votes":232, "complete":false }, "Kurt_Wright":{ "votes":156, "complete":false } } }
{ "title":"Burlington Mayor", … "results":{ "Bob_Kiss":{ "votes":232, "complete":false }, "Kurt_Wright":{ "votes":156, "complete":false }, "Miro_Weinberger":{ "votes":121, "complete":false } } }
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).
9f3d249 fixes this
code updated on live and dev, looking good.
Looks good to me.
Description
Results for elections should be ordered by the number of votes, with the highest vote-getting candidate first.
Steps to Reproduce
Actual Results
Expected Results
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).