Order of Application
Modifiers to damage are applied in the following order: adjustments such as bonuses, penalties, or multipliers are applied first; Resistance is applied second; and Vulnerability is applied third.
For example, a creature has Resistance to all damage and Vulnerability to Fire...