What's the order of USB Cables in the male connector of Apple Keyboard with n. Keypad?
USB pinouts are universal.  So, once you have the IEEE standard used, you should be able to resolder a new connector with no problem.  In this case, the USB connector used on the Apple Keyboard is a USB v1.1 connector.



I have included the pinouts for USB 1.1/2.0 below for reference.



Short of that, I am sure you could use the continuity function on a multi-meter on a USB cable to figure out which pin goes where