Okay i have this question for quite some time.

When you are attacking or defending , you get to fight opponents and its a different order every day / time. Lets say i am doing guild wars and facing opponent names 1-10 , on which order will i get to fight them ? is that based on their power or is it based on the time they join guild wars or is it pure random.