In a small saucepan, combine the sugar, vinegar, tamari or soy sauce, ketchup and garlic. Bring the sauce to a simmer over medium heat, stirring until the sugar dissolves. In a small bowl, whisk together the arrowroot or cornstarch with 2 teaspoons of water until smooth, then stir into the sauce in the saucepan. Cook sauce for 1 to 2 minutes, until slightly thickened.