X-Git-Url: https://projects.mako.cc/source/selectricity/blobdiff_plain/1e8c21d4c4c93721c16a669e330a6d4e60483919..HEAD:/app/views/common/_sortable_vote.rhtml
diff --git a/app/views/common/_sortable_vote.rhtml b/app/views/common/_sortable_vote.rhtml
index 6876966..75bb22f 100644
--- a/app/views/common/_sortable_vote.rhtml
+++ b/app/views/common/_sortable_vote.rhtml
@@ -1,8 +1,8 @@
- <% for ranking in @voter.vote.rankings %>
+ <% for ranking in @voter.vote.rankings.sort %>
-
- <%=h ranking.candidate.name.capitalize %>
+ <%= white_list(ranking.candidate.name.capitalize) %>
<% end %>
@@ -11,5 +11,6 @@
<%= sortable_element 'rankings-list',
:url => { :action => "sort_candidates", :id => @voter.vote.id },
+ :method => "get",
:complete => visual_effect(:highlight, 'rankings-list') %>