Wine sweetness (or wine dryness) is measured not only by the amount of sugar in a wine, but also by its acidity, alcohol content, and the presence of tannin-containing compounds.
Here is an easy-to-read wine sweetness chart that shows the most common red and white wine varieties, as well as how sweet or dry they taste. Keep in mind that wine styles will differ between producers.