All the nations will be gathered before him and he will sort them like a shepherd.

class Shepherd {
    Direction Sort(Animal animal)
    {
        if (animal is Sheep) {
            Return Direction.Right;
        }
        else if (animal is Goat) {
            Return Direction.Left;
        }
    }
}