newsdev / elex-admin

A CRUD admin for editing AP election results data, including names and race calls.
6 stars 2 forks source link

Add a sort order for candidates #11

Closed giratikanon closed 8 years ago

giratikanon commented 8 years ago

Each candidate should have an editable field called sort_order in the admin that lets us define the order we want candidates to appear when there are no votes.

For example, we may want to order the Republican candidates in Iowa like this before votes come in, especially for widgets where we can only show three candidates at a time:

wmandrews commented 8 years ago

https://github.com/newsdev/elex-admin/commit/0c208667dccccb9f3e342f7ff9656ab1e7eab846