Stanley and the rpo