Get the SB600/nissin 866 first.
After that, if you really want a portrait lens, get the 50/1.8 if you do not mind MF, or if you want AF on your D5k get the AFS 50/1.4. 35mm is too wide to be a good portrait lens. And if you go close, it will cause some elongating of the nose and results are less flattering.