Sort menu options

This sorts the menu case-insensitively, so it makes some sort of sense.
This commit is contained in:
Nick Hurley
2012-10-15 20:04:11 -07:00
parent 27076f8adb
commit 97643d43f3

View File

@@ -77,6 +77,8 @@ def complete():
) )
out.append(d) out.append(d)
out.sort(key=lambda x: x['word'].lower())
strout = str(out) strout = str(out)
except Exception: except Exception:
# print to stdout, will be in :messages # print to stdout, will be in :messages