Skip to content

Commit

Permalink
Sorteroo.
Browse files Browse the repository at this point in the history
rstacruz committed Jun 10, 2012
1 parent 0ea5c8a commit 1f234ac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mmdoc/lib/mmdoc/page_helpers.rb
Original file line number Diff line number Diff line change
@@ -46,7 +46,8 @@ def site_name
# # ... }
#
def nav_groups
children = here.children.any? ? here.children : here.all_siblings.sort
children = here.children.any? ? here.children : here.all_siblings
children = children.sort
groups = children.group_by { |p| p.data['group'] }
groups[here.title] = groups.delete("") if groups[""]
groups

0 comments on commit 1f234ac

Please sign in to comment.