diff --git a/plugins/langmenu.py b/plugins/langmenu.py index a2d371c..6637719 100644 --- a/plugins/langmenu.py +++ b/plugins/langmenu.py @@ -15,7 +15,7 @@ def add_localmenuitems(generator): menu.setdefault(tr.lang, []) print('we have langs ' + ','.join(menu.keys())) for page in sorted(generator.context['pages'], - key=lambda x: x.navbar_sort): + key=lambda x: int(x.navbar_sort)): defined_langs = [] menu[page.lang].append(page) defined_langs.append(page.lang)