Skip to content

Commit

Permalink
formula: sort versioned_formulae by version
Browse files Browse the repository at this point in the history
  • Loading branch information
Bo98 committed Feb 26, 2020
1 parent e88eea6 commit a0f88c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Library/Homebrew/formula.rb
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ def versioned_formulae
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}.
Expand Down

0 comments on commit a0f88c7

Please sign in to comment.