06c16175ea4aa81d4b64c0772f44c11e505a0eb7

Author
Karim Benbourenane <karim@es.net>
Committer
GitHub <noreply@github.com>
Date

Message

fix(aliases): group properly aliases (#11546)

Diff

 1diff --git a/plugins/aliases/cheatsheet.py b/plugins/aliases/cheatsheet.py
 2index 7505d304b4b83330c9b595b33f335f3eece05e35..f742fba9e2cb23b0a123eea38795ee99b4c98fb8 100644
 3--- a/plugins/aliases/cheatsheet.py
 4+++ b/plugins/aliases/cheatsheet.py
 5@@ -15,6 +15,7 @@ def parse(line):
 6 
 7 def cheatsheet(lines):
 8     exps = [ parse(line) for line in lines ]
 9+    exps.sort(key=lambda exp:exp[2])
10     cheatsheet = {'_default': []}
11     for key, group in itertools.groupby(exps, lambda exp:exp[2]):
12         group_list = [ item for item in group ]