.block#block-tables
  .content
    %h2.title Roles 
    .inner
      = partial('navigation', :active => 'index')
    .content
      .inner
        %table.table
          %tr
            %th.first{:colspan => 2} Name
            %th &nbsp;
            %th.last &nbsp;
          - even = false;
          - @role_list.sort_by {|value| value.downcase}.each do |role|
            %tr{ :class => even ? "even" : "odd" }
              %td{:colspan => 2}= link_to(role[0], url(:role, role[0]))
              %td
                = link_to('Edit', url(:edit_role, role[0])) 
                |
                = link_to('Delete', url(:role, role[0]), :method => "delete", :confirm => "Really delete Role #{role[0]}?  there is no undo.")
              - even = (not even)

.block#block-tables
  .content
    %h2.title Roles 
    .inner
      = partial('navigation', :active => 'index')
    .content
      .inner
        %table.table
          %tr
            %th.first{:colspan => 2} Name
            %th &nbsp;
            %th.last &nbsp;
          - even = false;
          - @role_list.sort_by {|name, api_uri| name.downcase}.each do |role|
            %tr{ :class => even ? "even" : "odd" }
              %td{:colspan => 2}= link_to(role[0], url(:role, role[0]))
              %td
                = link_to('Edit', url(:edit_role, role[0])) 
                |
                = link_to('Delete', url(:role, role[0]), :method => "delete", :confirm => "Really delete Role #{role[0]}?  there is no undo.")
              - even = (not even)

Sort roles hash on key
[CHEF-3431] Sort roles hash on key

Fixes 500 caused by call to undefined method Array#downcase
