lib/nasldoc/templates/sidebar.erb in nasldoc-0.0.9 vs lib/nasldoc/templates/sidebar.erb in nasldoc-0.1.0

- old
+ new

@@ -5,10 +5,10 @@ </head> <body> <img src='nessus.jpg' /> <br><br><br> <ul> - <% @file_list.each_with_index do |file, i| %> + <% @file_list.sort.each_with_index do |file, i| %> <% row_class = i % 2 == 0 ? "even" : "odd" %> <% output_file = file.gsub(".", "_") %> <% output_file = File.basename(file).gsub(".", "_") %> <li class="<%= row_class %>"><a href='<%= output_file %>.html' target='content'><%= File.basename(file) %></a></li> <% end %>