<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 %>">
- <%=h ranking.candidate.name.capitalize %></li>
+ <%= white_list(ranking.candidate.name.capitalize) %></li>
<% end %>
</ol>
</div>