Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sort addresses in API outputs #748

Merged
merged 3 commits into from May 1, 2017
Merged

Conversation

chris48s
Copy link
Collaborator

Deploying this will sort out the address picker on the EC's YourVoteMatters site and also help us out when we come to implement the address picker on WCIVF as we don't really want to have to implement this same logic across multiple sites.

Closes #744

AddressSorter now expects a list of objects of some type
(could be a ResidentialAddress object, could be something else)
which have a .address property
and natural_sort returns a list of objects
@coveralls
Copy link

coveralls commented Apr 29, 2017

Coverage Status

Coverage increased (+0.04%) to 63.409% when pulling 50785dd on chris48s:issue744 into d7d1b1e on DemocracyClub:master.

@symroe symroe merged commit 43a4955 into DemocracyClub:master May 1, 2017
@symroe symroe removed the Review label May 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants