How to transfer all my data and numbers onto an Iphone 5 from an iphone 4?

I would like to do this, but I want to reset my iphone 4 and clear it for resell, I know that data is stored onto icloud but if I reset the 4 will I lose it all on icloud so I have to manually put i all details on iphone5.
Very confused

All music, app data saves and notes contacts transfers by iCloud. Photos and videos transfer only by pc connection. All data can be transferred by connecting to computer.