aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-04-27 16:01:46 -0500
committerJack Nagel2014-04-27 16:03:08 -0500
commit82047ed90146ef03dcd7bc5380cbda7296886034 (patch)
tree0fd39ea3cd392231a5692ca74c43a9684c59a528 /Library
parent3b15b58d007c38f56315a4a09908b6efaa46ee8e (diff)
downloadbrew-82047ed90146ef03dcd7bc5380cbda7296886034.tar.bz2
Search results should always be sorted
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/search.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/search.rb b/Library/Homebrew/cmd/search.rb
index 9aa6dad5f..b53ecf29d 100644
--- a/Library/Homebrew/cmd/search.rb
+++ b/Library/Homebrew/cmd/search.rb
@@ -122,7 +122,7 @@ module Homebrew extend self
def search_formulae rx
aliases = Formula.aliases
- results = (Formula.names+aliases).grep(rx)
+ results = (Formula.names+aliases).grep(rx).sort
# Filter out aliases when the full name was also found
results.reject do |alias_name|