diff options
author | Amjith Ramanujam <amjith.r@gmail.com> | 2015-01-31 15:12:05 -0800 |
---|---|---|
committer | Amjith Ramanujam <amjith.r@gmail.com> | 2015-01-31 15:12:05 -0800 |
commit | a31053aa1ff5bcc322eb92f7d9888d7def773545 (patch) | |
tree | acf26116ddb876933e2e5e9bd39fde3829185097 | |
parent | 588be277972a8acaf8cb38feefefa0274e59cf82 (diff) |
Make completion menu sorted.
-rw-r--r-- | pgcli/pgcompleter.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pgcli/pgcompleter.py b/pgcli/pgcompleter.py index daaf1673..b8a37f56 100644 --- a/pgcli/pgcompleter.py +++ b/pgcli/pgcompleter.py @@ -122,7 +122,7 @@ class PGCompleter(Completer): @staticmethod def find_matches(text, collection): text = last_word(text, include='most_punctuations') - for item in collection: + for item in sorted(collection): if (item.startswith(text) or item.startswith(text.upper()) or item.startswith(text.lower())): yield Completion(item, -len(text)) |