Barley, pea, wheat, potato is the correct sequence for soil fertility. Barley is a cereal that doesn't deplete soil heavily. Pea (a legume) fixes atmospheric nitrogen through rhizobium bacteria, enriching the soil. Wheat can then use this nitrogen, and potato is a heavy feeder that benefits from the improved soil. Other sequences don't optimize this nitrogen contribution.