From 97643d43f3b6bf8c284f518a49df069682124a86 Mon Sep 17 00:00:00 2001 From: Nick Hurley Date: Mon, 15 Oct 2012 20:04:11 -0700 Subject: [PATCH] Sort menu options This sorts the menu case-insensitively, so it makes some sort of sense. --- plugin/jedi_vim.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugin/jedi_vim.py b/plugin/jedi_vim.py index 69cda3e..4da6284 100644 --- a/plugin/jedi_vim.py +++ b/plugin/jedi_vim.py @@ -77,6 +77,8 @@ def complete(): ) out.append(d) + out.sort(key=lambda x: x['word'].lower()) + strout = str(out) except Exception: # print to stdout, will be in :messages