Separating a mixture of NaCl and sugar is actually quite easy. Although sugar is soluble in any type of alcohol, salt, on the other hand, is not. If you want to separate the two, first mix both salt and sugar in any type of alcoholic beverage. Once you do that, if you now filter the beverage, you will be able to obtain the salt. However, since the sugar is soluble in alcohol, you need to obtain it in a different manner.
Once you have filtered the beverage and got the salt, evaporating the alcohol and sugar mixture will leave you with the sugar.