Whisk together the sugar, water, fish sauce, and lime juice in a bowl until the sugar is completely dissolved. Add the garlic, chile, and shallot, and let stand for 30 minutes before serving.
Recipe courtesy of Corinne Trang, Authentic Vietnamese Cooking, Simon & Schuster, 1999