The order is:
Blue, Green, Red, Yellow, Purple, Brown
It’s not relevant except in a few unusual cases…
Suppose I match Brown & Red simultaneously, and I have Sheggra (red/brown) & a Wyrm (brown)
If Sheggra is almost full, she gets the red points first, leaving the brown to apply to the wyrm
If Brown applied before Red, then Sheggra would get the brown, leaving red, which is useless to the wyrm!