What procedure would correct a twisted spermatic cord?

First a scrotal exploration is needed to comfirm a twisted spermatic cord then a orchiopexy is performed where the doctor sutures the testicle to the side of the scrotal wall to prevent it from rotating again.