Combine sugar and cornstarch in a medium saucepan; stir in cranberries and water. Bring to a boil over medium-high heat, and cook 5 minutes or until cranberries pop. Cool.