class method
Gem::Platform.sort_best_platform_match
sort_best_platform_match(matching, platform)
lib/rubygems/platform.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/lib/rubygems/platform.rb, line 341
def sort_best_platform_match(matching, platform)
matching.sort_by.with_index do |spec, i|
[
platform_specificity_match(spec.platform, platform),
i, # for stable sort
]
end
end
Sorts the best platform match for the given matching specs and platform.