The are two methods of doing this.
Big swing method: pull the top in the direction the tip is pointing so it swings in a vertical plane. By "magic" it will stand up, so you can pull it towards you and land it on your hand.
Small circle method: speed up the precession by moving the string in front of the top in a small circle. It will stand up and you can pull it up to your hand.