g) Do whatever the attack says. Do any damage first, then do any other effects, and finally, Knock Out any Pokémon that have damage greater than or equal to their Hit Points.
As stated in the expert rules on go-pokemon.com Damage would be dealt first then you can move the cards around.