Ion-nav , how start from last component and go backwards step by step

Hi, I have steps, for that using ion-nav/ion-nav-link, problem is sometimes I want to start from the last step(components) and go back step by step. How can I implement that? For regular situation is fine when I start from first step and go forwards, can go back … but do not know how can I start from end and and go back(or forwards after go back).
Thanks