Normally staking is done perpendicular to the wind, but in this case, place one stake in the direction that needs straightening. The second stake will stabilize the tree once you have corrected the leaning. Put the stakes in first, then have someone hold the tree upright while you fasten the rope/wire. If necessary, make sure that soil is replaced in staking and then water the tree.