

@classmethod
def sort_menus(c):
    '\n        sort_menus goes through the items and sorts them based on\n        their weight\n        '
    for name in c.items:
        if (not c.sorted[name]):
            c.items[name].sort(key=(lambda x: x.weight))
            c.sorted[name] = True

dataset/ETHPy150Open borgstrom/django-simple-menu/menu/menu.py Menu.sort_menus/original