Inserts a child as a child of this, sorting it among the other children.
child
A TreeNode.
A compare func to compare nodes.
user data for compare_func.
compare_func