Quoted from DrJoe:The new groups are based upon your scores for the day.
I'll just add one (I hope) clarifying comment. Each time you are re-grouped, you end up in a new group of people with the same basic win-loss record. Thus you are always playing others at your level of performance. This also means that you may end up competing against the same individual more than once.