From 3b14b363803f3b141ad84afac2552684878b0ad8 Mon Sep 17 00:00:00 2001 From: boyska Date: Sun, 4 Jun 2017 12:18:51 +0200 Subject: [PATCH] fix navbar_sort --- plugins/langmenu.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)