summaryrefslogtreecommitdiff
path: root/plugins/aliases/cheatsheet.py
diff options
context:
space:
mode:
authorKarim Benbourenane <karim@es.net>2023-03-07 03:25:34 -0500
committerGitHub <noreply@github.com>2023-03-07 09:25:34 +0100
commit06c16175ea4aa81d4b64c0772f44c11e505a0eb7 (patch)
treed62a97e1a0201e409aa7dc7cdf9a2b4cbf7cc385 /plugins/aliases/cheatsheet.py
parent3b759c5dc926d0973d82fa1b8ffed45d770d20e8 (diff)
downloadzsh-06c16175ea4aa81d4b64c0772f44c11e505a0eb7.tar.gz
zsh-06c16175ea4aa81d4b64c0772f44c11e505a0eb7.tar.bz2
zsh-06c16175ea4aa81d4b64c0772f44c11e505a0eb7.zip
fix(aliases): group properly aliases (#11546)
Diffstat (limited to 'plugins/aliases/cheatsheet.py')
-rw-r--r--plugins/aliases/cheatsheet.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/aliases/cheatsheet.py b/plugins/aliases/cheatsheet.py
index 7505d304b..f742fba9e 100644
--- a/plugins/aliases/cheatsheet.py
+++ b/plugins/aliases/cheatsheet.py
@@ -15,6 +15,7 @@ def parse(line):
def cheatsheet(lines):
exps = [ parse(line) for line in lines ]
+ exps.sort(key=lambda exp:exp[2])
cheatsheet = {'_default': []}
for key, group in itertools.groupby(exps, lambda exp:exp[2]):
group_list = [ item for item in group ]