Also fixing a long-standing unnoticed bug in the group menu
method. Each item has a "weight", but the items are never
sorted by weight. They were just used in the order they were
inserted, which coincidentally matched their weight order.
behatnotneeded: Results won't be visible from the front-end