I figured out a way to do this without backing up. First undock, then rotate to your desired position, leaving the docking ports as close as possible. Next, exit to the space center. Then, go back to one of the craft you are trying to redock. Your vessels should reconnect in the desired position.