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 <mike@mikemcquaid.com>
This commit is contained in:
Xu Cheng 2015-02-07 09:21:20 +08:00 committed by Mike McQuaid
parent 357d0f2796
commit f8791da2ec

View File

@ -614,6 +614,8 @@ class Formula
"poured_from_bottle" => tab.poured_from_bottle "poured_from_bottle" => tab.poured_from_bottle
} }
end end
hsh["installed"].sort_by! { |i| Version.new(i["version"]) }
end end
hsh hsh