If you suffer from both erection and ejaculation problems, it is generally recommended to treat the erectile dysfunction first.
Erectile dysfunction
Premature ejaculation