Gloves of Dueling:
These supple gloves grant the wearer a +4 bonus to her CMD against disarm attacks, attempts to sunder her wielded weapons, and effects that cause her to lose her grip on her weapons (such as grease). The wearer doesn’t drop held weapons when panicked or stunned. If the wearer has the weapon training class feature and is using an appropriate weapon, her weapon training bonus increases by +2.
When the fighter makes a ranged attack with a thrown weapon and applies his Dexterity modifier on attack rolls and his Strength modifier on damage rolls, he doubles his weapon training bonus on damage rolls. Unless he has the Throw Anything feat, the fighter can choose only the thrown fighter weapon group with this option. If he has Throw Anything, the fighter can choose any fighter weapon group with this option and apply this option's benefits to any weapon from that group that he throws.
Would the bonus from the gloves be applied before or after the doubling? For instance at level 9 would it be (2WT+2GD)x2TT=8 or 2WTx2TT+2GD=6?