diff --git a/lib/jazzy/doc_builder.rb b/lib/jazzy/doc_builder.rb index 00a5e4093..a21b83c80 100644 --- a/lib/jazzy/doc_builder.rb +++ b/lib/jazzy/doc_builder.rb @@ -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, c.usr] } + .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 }] +