summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmjith Ramanujam <amjith.r@gmail.com>2015-01-31 15:12:05 -0800
committerAmjith Ramanujam <amjith.r@gmail.com>2015-01-31 15:12:05 -0800
commita31053aa1ff5bcc322eb92f7d9888d7def773545 (patch)
treeacf26116ddb876933e2e5e9bd39fde3829185097
parent588be277972a8acaf8cb38feefefa0274e59cf82 (diff)
Make completion menu sorted.
-rw-r--r--pgcli/pgcompleter.py2
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))