Skip to content

Commit

Permalink
Sort Namespace list by name only
Browse files Browse the repository at this point in the history
This makes it easier to scan the Namespace list when looking for an
approximate name.
  • Loading branch information
jonathanhefner committed Oct 10, 2023
1 parent a0d20c9 commit 2c82df9
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions lib/rdoc/generator/template/rails/_context.rhtml
Original file line number Diff line number Diff line change
Expand Up @@ -158,11 +158,8 @@
<!-- Namespace -->
<div id="namespace" class="content__divider">Namespace</div>
<ul>
<% (@context.modules.sort + @context.classes.sort).each do |mod| %>
<li>
<span class="kind"><%= mod.type %></span>
<%= link_to mod %>
</li>
<% @context.classes_and_modules.sort.each do |mod| %>
<li><%= link_to mod %></li>
<% end %>
</ul>
<% end %>
Expand Down

0 comments on commit 2c82df9

Please sign in to comment.