Auto Configuring Circuit Routing
If you can't keep track of which cable is which by labelling them, then you'll have to do the testing in any case. At which point, you might as well connect them physically in the right order, and avoid the expense and other penalties associated with an electronic sorting mechanism.