Skip to content

Commit

Permalink
Consistent child ordering across Ruby versions
Browse files Browse the repository at this point in the history
  • Loading branch information
pcantrell committed Jun 24, 2016
1 parent 4c4be3f commit 5802a19
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/jazzy/doc_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,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 { |c| [c.nav_order, c.name] }
.sort_by { |c| [c.nav_order, c.name, c.usr] }
.flat_map do |child|
# FIXME: include arbitrarily nested extensible types
[{ name: child.name, url: child.url }] +
Expand Down Expand Up @@ -180,7 +180,7 @@ def self.write_lint_report(undocumented, options)

lint_report = {
warnings: warnings.sort_by do |w|
[w[:file], w[:line] || 0, w[:symbol_qualified]]
[w[:file], w[:line] || 0, w[:symbol_qualified], w[:symbol_kind]]
end,
source_directory: options.source_directory,
}
Expand Down
2 changes: 1 addition & 1 deletion spec/integration_specs
Submodule integration_specs updated 116 files

0 comments on commit 5802a19

Please sign in to comment.