Stopped reading here so maybe you already got it but the odds would be in your favor.
The way the game works for that socket recipe it rolls random # 1-6 every time (max sockets on any item 6). Your Crystal Sword can only get 4 max IIRC so if it rolls a 4, 5 or 6 your sword will get 4 (50% chance).