Answer :

Vinegar is far more dense than water, meaning that when sugar is placed in vinegar, it has less room to diffuse and dissolve. If it were placed in something less dense than water the same effect would happen.