sort main menus