Double Rainbow Energy should be applied *before* applying Weakness and Resistance. This brings it in line with the Japanese version of the card.
Source: PUI Announcement (2004-10-01)

Relevant cards

Note: All applicable cards may not be listed below.
EX4_88