Changing the barrel connector

Status
Not open for further replies.
This question reveals the extent of my ignorance, but I need to change the barrel connector on a particular cable by cutting the cable, cutting the cable which connects the correct barrel connector to a power supply, and soldering the wires together. Do I need to solder the two wires in a particular configuration or can I attach them either way?
 
Status
Not open for further replies.