The lists follow the nutrition declared on the product label. We work out the share of each macronutrient by energy rather than by weight, because a gram of fat carries 9 kcal while a gram of protein or carbohydrate carries only 4. Fat is judged by its saturated share and carbohydrate by its sugar share, so what you see first is the best composition rather than simply the fattiest or the sweetest.