Sort snippets alphabetically before showing them in the list. Patch by Allait

This commit is contained in:
Holger Rapp 2011-07-17 12:09:29 +02:00
parent 07b3c797c6
commit b46461bc07

View File

@ -667,6 +667,9 @@ class SnippetManager(object):
before, after = self._get_before_after()
snippets = self._snips(before, True)
# Sort snippets alphabetically
snippets.sort(key=lambda x: x.trigger)
if not snippets:
return True