<% if @topics.count == 0 %>
  <div class="empty-list">
    <p>Sorry, there are no upcoming sessions at this time. Please check again later!</p>
  </div>
<% else %>
  <% @topics.keys.sort.each do |department| %>
    <div class="content-section">
      <h2><%= department.name %></h2>
      <ul class="topic-list">
        <% @topics[department].sort {|a,b| a.name <=> b.name }.each do |topic| %>
          <li>
            <%= link_to topic.name, topic %>
            <% if topic.upcoming_sessions.present? %>       
            <% session = topic.upcoming_sessions[0] %>
            <div class="session-info">
              <span class="session-link"><%= link_to_session session %></span>
              <%= session_site(session) %>
            </div>
            <% end %>
          </li>
        <% end %>
      </ul>
    </div>
  <% end %>
<% end %>

<% if @topics.count == 0 %>
  <div class="empty-list">
    <p>Sorry, there are no upcoming sessions at this time. Please check again later!</p>
  </div>
<% else %>
  <% @topics.keys.sort.each do |department| %>
    <div class="content-section">
      <h2><%= department.name %></h2>
      <ul class="topic-list">
        <% @topics[department].sort_by {|a| a.name.downcase }.each do |topic| %>
          <li>
            <%= link_to topic.name, topic %>
            <% if topic.upcoming_sessions.present? %>       
            <% session = topic.upcoming_sessions[0] %>
            <div class="session-info">
              <span class="session-link"><%= link_to_session session %></span>
              <%= session_site(session) %>
            </div>
            <% end %>
          </li>
        <% end %>
      </ul>
    </div>
  <% end %>
<% end %>

Use case-insensitive sorting in topics/by-department page to match all the other pages.
Use case-insensitive sorting in topics/by-department page to match all the other pages.
