]> projects.mako.cc - selectricity/blobdiff - app/views/common/_sortable_vote.rhtml
User summary method is now more secure. Email change method prtects account SQL injec...
[selectricity] / app / views / common / _sortable_vote.rhtml
index f026c4216378f65dfcd832b8699ce9beb6c5bb08..0fe6ad17d6d45b2617fb6f63e6f773707dfc04c7 100644 (file)
@@ -1,6 +1,6 @@
 <div id="sortable_list">
 <ol id="rankings-list">
-  <% for ranking in @voter.vote.rankings %>
+  <% for ranking in @voter.vote.rankings.sort %>
     <li class="moveable" id="ranking_<%= ranking.candidate.id %>">
       <%= white_list(ranking.candidate.name.capitalize) %></li>
   <% end %>

Benjamin Mako Hill || Want to submit a patch?