lib/rspec_api_docs/formatter.rb in rspec-api-docs-0.8.0 vs lib/rspec_api_docs/formatter.rb in rspec-api-docs-0.9.0
- old
+ new
@@ -38,10 +38,10 @@
# Calls the configured renderer with the stored {Resource}s.
#
# @return [void]
def close(null_notification)
- renderer.new(resources.values.sort_by(&:name)).render
+ renderer.new(resources.values.sort_by { |resource| [resource.precedence, resource.name].join }).render
end
private
def renderer