diff options
| author | Jack Nagel | 2014-04-27 16:01:46 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-04-27 16:03:08 -0500 |
| commit | 82047ed90146ef03dcd7bc5380cbda7296886034 (patch) | |
| tree | 0fd39ea3cd392231a5692ca74c43a9684c59a528 | |
| parent | 3b15b58d007c38f56315a4a09908b6efaa46ee8e (diff) | |
| download | brew-82047ed90146ef03dcd7bc5380cbda7296886034.tar.bz2 | |
Search results should always be sorted
| -rw-r--r-- | Library/Homebrew/cmd/search.rb | 2 |
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| |
