Merge pull request #7082 from Bo98/versioned_formulae

formula: sort versioned_formulae by version
This commit is contained in:
Mike McQuaid 2020-02-27 10:02:32 +00:00 committed by GitHub
commit 5a8576eec5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -392,7 +392,7 @@ class Formula
Formula[path.basename(".rb").to_s]
rescue FormulaUnavailableError
nil
end.compact.sort
end.compact.sort_by(&:version).reverse
end
# A named Resource for the currently active {SoftwareSpec}.