aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorMike McQuaid2017-10-28 13:08:12 +0100
committerGitHub2017-10-28 13:08:12 +0100
commit7caca570736a6232512328992b398270dbbf3f4f (patch)
treea3f581ccb34887e9d395840e0cb0360d54eea7e9 /Library/Homebrew/cmd
parentb2e2e4b917805b8cf0a86bbc4a1517146a1f0d33 (diff)
parentea7d356e08e9a54efca82bd90e5caf925c179d3d (diff)
downloadbrew-7caca570736a6232512328992b398270dbbf3f4f.tar.bz2
Merge pull request #3380 from jmsundar/apfs_tap-info
tap-info: handle APFS returning hash order
Diffstat (limited to 'Library/Homebrew/cmd')
-rw-r--r--Library/Homebrew/cmd/tap-info.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/Library/Homebrew/cmd/tap-info.rb b/Library/Homebrew/cmd/tap-info.rb
index d01ce8a02..3d995f4bc 100644
--- a/Library/Homebrew/cmd/tap-info.rb
+++ b/Library/Homebrew/cmd/tap-info.rb
@@ -21,7 +21,6 @@ module Homebrew
module_function
def tap_info
- # TODO: This still returns a non-alphabetised list on APFS.
if ARGV.include? "--installed"
taps = Tap
else
@@ -31,9 +30,9 @@ module Homebrew
end
if ARGV.json == "v1"
- print_tap_json(taps)
+ print_tap_json(taps.sort_by(&:to_s))
else
- print_tap_info(taps)
+ print_tap_info(taps.sort_by(&:to_s))
end
end