<div id="sidebar">
  <ul class="nav nav-list">
    <li class="active">
      <a id="start-page"><i class="icon-asterisk"></i> <%= t 'feeds.index.start' %></a>
    </li>
  </ul>

  <hr>

  <ul id="folders-list" class="nav nav-tabs nav-stacked">

    <%= render 'feeds/sidebar/sidebar_folder', user: @user, feeds: @feeds, title: t('feeds.index.all_feeds'), folder_id: 'all' %>

    <% @folders.each do |folder| %>

      <%= render 'feeds/sidebar/sidebar_folder', user: @user, feeds: folder.feeds, title: folder.title, folder_id: folder.id %>

    <% end %>

  </ul>
</div>
<div id="sidebar">
  <ul class="nav nav-list">
    <li class="active">
      <a id="start-page"><i class="icon-asterisk"></i> <%= t 'feeds.index.start' %></a>
    </li>
  </ul>

  <hr>

  <ul id="folders-list" class="nav nav-tabs nav-stacked">

    <%= render 'feeds/sidebar/sidebar_folder', user: @user, feeds: @feeds, title: t('feeds.index.all_feeds'), folder_id: 'all' %>

    <% @folders.all(order: 'title ASC').each do |folder| %>

      <%= render 'feeds/sidebar/sidebar_folder', user: @user, feeds: folder.feeds, title: folder.title, folder_id: folder.id %>

    <% end %>

  </ul>
</div>
Order folders in the sidebar by alphabetical title order.
Order folders in the sidebar by alphabetical title order.
