We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 117c89b commit 2523982Copy full SHA for 2523982
lib/pact_broker/index/service.rb
@@ -61,7 +61,9 @@ def self.find_index_items options = {}
61
tag_names.collect do | tag_name |
62
verification_repository.find_latest_verification_for row.consumer_name, row.provider_name, tag_name
63
end.compact.sort do | v1, v2 |
64
- v1.provider_version.order <=> v2.provider_version.order
+ # Some provider versions have nil orders, not sure why
65
+ # Sort by execution_date instead of order
66
+ v1.execution_date <=> v2.execution_date
67
end.last
68
end
69
0 commit comments