In apple recipes, such as caramelized apple and chunky applesauce you want the apples to hold their shape so you want to use a good cooking apple and add the sugar at the beginning of the cooking process. You will find more
Apple Cooking information in All About Apples.