Skip to content

Commit

Permalink
sort display order of tools
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Conway committed Nov 10, 2009
1 parent 4bbd9e7 commit 4a7a9a0
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -17,11 +17,11 @@ <h1>Rubber Admin Tools</h1>
<li><a href="http://<%= cruise_host %>/cruise/">CruiseControl</a></li>
<% end %>

<% rubber_instances.for_role('haproxy').each do |ic| %>
<% rubber_instances.for_role('haproxy').sort {|a,b| a.name <=> b.name }.each do |ic| %>
<li><a href="/haproxy_<%= ic.name %>/">HAProxy <%= ic.name %></a></li>
<% end %>

<% rubber_instances.each do |ic| %>
<% rubber_instances.sort {|a,b| a.name <=> b.name }.each do |ic| %>
<li><a href="/monit_<%= ic.name %>/">Monit <%= ic.name %></a></li>
<% end %>

Expand Down

0 comments on commit 4a7a9a0

Please sign in to comment.