get some sticky labels (like address labels, or just make some using paper and clear tape) and make thin strips labels 1-20 and fold them in half around each wire before you take the connector off... then you don't even need to do a diagram or refer to a picture, just do it by the numbers

that's what i'm gonna do, i've got a 24 pin connector on mine and am sleeving it and gonna put the 20-pin connector on the end instead cos i don't wanna use that ugly 24-20 pin adapter...
in theory the right colour at the right pin should be ok... but i don't personally wanna test that theory...