I am planning on selling my iPhone 4 but most of my contacts are on the iPhone and not on the sim card. How do I transfer all of my contacts from my iPhone to my sim card?

Moderator's Note:
As...