LaoHuang It already worked for the first few groups.
I think, what you should add is: When rank is tied, sort the list randomly, not by names. (Every table program like excel should have a function for that). If you don't do that, many people will face the same opponents again and again.
Also: thank you for organizing; i think this is an interesting format!