gram for gram Apples and coke are about the same, however an 8oz coke has over twice the sugar content of an apple.
Secondly, on the disservice, you are particularly correct. I have done myself a disservice by not correctly interpreting my own research. Two years back, when switching to become a vegetarian, I calculated macros for loads of foods. For sugar I used a calculation based on the food's glycemic index.
As an aside, where are you getting your nutritional info? It's way off what I've found. I was using the nutritional info for a regular "medium apple", and in the sources I found it has 20g vs coke's 25g, and almost the exact same amount of calories. 80% of a coke's sugar, calorie-forcalorie and serving-for-serving, hardly qualifies ad "very little sugar".
Whoever told you this did you a disservice, because it's completely untrue. I think coke is a pretty good posterchild for "a shocking amount of sugar", and an 8 oz bottle of coke has about the same sugar content as an apple or a navel orange (and the orange has half the calories, making the comparison even less favorable). The difference between the two is that the coke is (nutritionally speaking) nothing but carbonated, liquid sugar while a whole apple comes with a fair amount of fiber. The difference in speed of absorption is primarily what makes one healthy and the other terrible for you.