app/views/search/_representative_results.html.erb
<h3><%= Representative.model_name.human(count: 2).capitalize %></h3>
<ul>
<% results.sort_by(&:last_name).each do |r| %>
<li>
<%= link_to r.full_name, representative_path(r.slug) %>
(<%= [r.district.name, r.latest_party && r.latest_party.name].join(", ") %>)
</li>
<% end %>
</ul>