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
commit2afd5cfba30a410fe26627092a56bba738c46d9d (patch)
tree7e2110716e7d2e8ff20fa9417d737061e34b2b4b /Library
parente2a6472b454b8281e45c38b5c27ad16ef46a41cc (diff)
downloadhomebrew-2afd5cfba30a410fe26627092a56bba738c46d9d.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|