aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorMarkus Reiter2017-06-20 15:27:16 +0200
committerMarkus Reiter2017-06-20 15:44:54 +0200
commit19cf6dcb3f35ca475a5b96a56913aabb05e9918d (patch)
tree98ea94df0a8ed16dbebab3d6cb27cb3ce08f8f0b /Library/Homebrew/cmd
parenta1e5077adf60b6594b1c372ddfb275fb55b33c65 (diff)
downloadbrew-19cf6dcb3f35ca475a5b96a56913aabb05e9918d.tar.bz2
🔨 Fix sorting on APFS.
Diffstat (limited to 'Library/Homebrew/cmd')
-rw-r--r--Library/Homebrew/cmd/switch.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/switch.rb b/Library/Homebrew/cmd/switch.rb
index a40b4d88e..8a378aed7 100644
--- a/Library/Homebrew/cmd/switch.rb
+++ b/Library/Homebrew/cmd/switch.rb
@@ -28,7 +28,7 @@ module Homebrew
unless (rack/version).directory?
onoe "#{name} does not have a version \"#{version}\" in the Cellar."
- versions = rack.subdirs.map { |d| Keg.new(d).version }
+ versions = rack.subdirs.map { |d| Keg.new(d).version }.sort
puts "Versions available: #{versions.join(", ")}"
exit 3