For this we have to understand that the nature of water is polar.
And salt is an ionic compound which is also polar in nature.
But sugar is non polar in nature and thus it have a different nature.
The dissolution of substances follow a simple rule ,”Like dissolves like.”
So salt will dissolve faster than sugar.