Move popup menu items to positions matching their Java equivalents