- if @template && @template.description.present?
  %tr
    %td.beige.padding-5{colspan: 6}= @template.description
%tr
  %td.green.left-align
    .gallery
      - @characters.includes(:default_icon).each do |character|
        .gallery-icon
          = link_to character_path(character) do
            - if character.icon
              = icon_tag character.icon
              %br
            - else
              <div class='icon gallery-no-icon'>&nbsp;</div>
              %br
            %span.character-name= character.name
            - if character.screenname.present?
              %br
              %span.character-screenname= surround('(', ')') { sanitize(character.screenname).gsub('_', '_<wbr>') }
          - if character.user_id == current_user.try(:id)
            .delete-button{ id: character.id }
              = link_to 'X', character_path(character), :method => :delete, confirm: 'Are you sure you want to delete '+character.name+'?'
      - if @characters.empty?
        .centered — No characters yet —

- if @template && @template.description.present?
  %tr
    %td.beige.padding-5{colspan: 6}= @template.description
%tr
  %td.green.left-align
    .gallery
      - @characters.order('name asc').includes(:default_icon).each do |character|
        .gallery-icon
          = link_to character_path(character) do
            - if character.icon
              = icon_tag character.icon
              %br
            - else
              <div class='icon gallery-no-icon'>&nbsp;</div>
              %br
            %span.character-name= character.name
            - if character.screenname.present?
              %br
              %span.character-screenname= surround('(', ')') { sanitize(character.screenname).gsub('_', '_<wbr>') }
          - if character.user_id == current_user.try(:id)
            .delete-button{ id: character.id }
              = link_to 'X', character_path(character), :method => :delete, confirm: 'Are you sure you want to delete '+character.name+'?'
      - if @characters.empty?
        .centered — No characters yet —

Fix character icon view sort to be name asc, like list view
Fix character icon view sort to be name asc, like list view
