Rollback deployment to a different version

When we run the “kubectl rollout undo deployment/myapp-deployment” command, it roll backs the deployment to an older version (N-1). May I know how can I roll back the deployment to a different version other than the latest one?

Many thanks.

Hello,

Please see this in the documentation

Many thanks for your reply. This really helped.