"...Sodium hydroxide has a much higher affinity for water than salt or sugar or most other additives)..."
I agree about NaOH being more soluble than NaCl (table salt) so you have to add the salt first to get the desired result.
The issue with adding table sugar into lye solution vs. into plain water is not related to solubilty. There is a chemical reaction between components of the sugar and NaOH. If this reaction occurs when the table sugar is still in large grains, the sugar granules clump together into a mass. If you get the sugar dissolved first, the reaction still happens, but on a molecular level.