1
0
Fork 0

fix navbar_sort

This commit is contained in:
boyska 2017-06-04 12:18:51 +02:00
parent 31bd800fb0
commit 3b14b36380
No known key found for this signature in database
GPG key ID: 7395DCAE58289CA9

View file

@ -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)