Sort menus when items are re-added, fixes #29.