From f8791da2ec094f0ccaa5bdd432ab9ec45945f985 Mon Sep 17 00:00:00 2001 From: Xu Cheng Date: Sat, 7 Feb 2015 09:21:20 +0800 Subject: [PATCH] formula: sort installed version in to_hash https://github.com/Homebrew/homebrew-brewdler/pull/43#discussion_r24248760 Closes Homebrew/homebrew#36611. Signed-off-by: Mike McQuaid --- Library/Homebrew/formula.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index 0ba0d334dc..082a8e80fa 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -614,6 +614,8 @@ class Formula "poured_from_bottle" => tab.poured_from_bottle } end + + hsh["installed"].sort_by! { |i| Version.new(i["version"]) } end hsh