They had a number written on their white board and through indications, they had to cross paths a few times (one direction if smaller number , another director if bigger number than your neighbor).
In the end, they had to have crossed and sit in the right order, from smallest to biggest number.