Skip to content

Instantly share code, notes, and snippets.

@vlandham
Created January 14, 2012 01:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vlandham/1609839 to your computer and use it in GitHub Desktop.
Save vlandham/1609839 to your computer and use it in GitHub Desktop.
<% list = [
"Sarang Sane, University of Kansas",
"Alessandro De Stefani, University of Kansas",
"Arindam Banerjee, University of Kansas",
"Jason Lutz, University of Nebraska - Lincoln",
"Luigi Ferraro, University of Nebraska - Lincoln",
"Kat Shultis, University of Nebraska - Lincoln"
] %>
<% sorted_list = list.sort {|a,b| a.split(" ")[0].downcase <=> b.split(" ")[0].downcase } %>
<ol>
<% sorted_list.each do |person| %>
<li><%= person %></li>
<% end %>
</ol>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment