Sugar is an organic compound (contains carbon) and is soluble in organic solvents like alcohol. Salt is insoluble in alcohol. Simply mix the two in alcohol and filter the solution to get the salt. Then evaporate the alcohol sugar mixture and the sugar will be left out.