Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

Commit

Permalink
Fix sorting (realm#473)
Browse files Browse the repository at this point in the history
  • Loading branch information
esad committed Feb 4, 2016
1 parent 7549ac2 commit d1a4a00
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/jazzy/doc_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ def self.prepare_output_dir(output_dir, clean)
def self.doc_structure_for_docs(docs)
docs.map do |doc|
children = doc.children
.sort_by(&:name)
.sort_by(&:nav_order)
.sort_by {|c| [c.nav_order, c.name] }
.map do |child|
{ name: child.name, url: child.url }
end
Expand Down

0 comments on commit d1a4a00

Please sign in to comment.