Commits

Michael Granger committed d228555

Sort the installed gems in the index view

Comments (0)

Files changed (1)

data/gemserver/views/index.erb

 		</thead>
 
 		<tbody>
-		<% gemindex.latest_specs.each_with_index do |gemspec, i| %>
+		<% gemindex.latest_specs.
+			sort_by {|gemspec, _| gemspec.name }.
+			each_with_index do |gemspec, i| %>
 		<% if (i % 2).nonzero? %>
 			<tr class="odd">
 		<% else %>