A function to compare two children to determine which should come first.
the first child
the second child
A function to compare two children to determine which should come first.