I don't know if this is right or not, but it might be sorted by qualifying points on qualifying night? Like perhaps the two groups with the highest points will fight with each other first, then the next two with power, etc. Don't take my word for this, it's just a guess.