Soldering one leg first and checking that the socket is flat against the board avoids a simple mistake.
If it is not flat, or otherwise misaligned simply re-heating the leg will help correct the issue.
Once orientation and alignment is verified, solder the remaining legs.
Sometimes a small shim, such as the black foam here, can help keep the board level and simplifies the task.