In this context, right view comes first. And how does right view come first? When you understand wrong action as wrong action and right action as right action, that’s your right view.
And what is wrong action? Killing living creatures, stealing, and sexual misconduct. This is wrong action.
And what is right action? Right action is twofold, I say. There is right action that is accompanied by defilements, partakes of good deeds, and ripens in attachments. And there is right action that is noble, undefiled, transcendent, a factor of the path.
And what is right action that is accompanied by defilements, partakes of good deeds, and ripens in attachments? Refraining from killing living creatures, stealing, and sexual misconduct. This is right action that is accompanied by defilements.
And what is right action that is noble, undefiled, transcendent, a factor of the path? It’s the desisting, abstaining, abstinence, and refraining from the three kinds of bad bodily conduct in one intent on the noble, intent on the undefiled, who possesses the noble path and develops the noble path. This is right action that is noble.
They make an effort to give up wrong action and embrace right action: that’s their right effort. Mindfully they give up wrong action and take up right action: that’s their right mindfulness. So these three things keep running and circling around right action, namely: right view, right effort, and right mindfulness.