Add granulated white sugar, minced garlic, red pepper flakes, water, rice vinegar, salt, ketchup, sambal oelek, and fish sauce to a saucepan and stir to combine.
Cook for 2-3 minutes until the sauce thickens.
Remove the pan from heat and let the sauce cool down. Transfer in a clean glass jar and refrigerate for up to 2 weeks.