code: public void sortChildrenByNode(Comparator<TreeNode<T>> comparator) {
  		Collections.sort(children, comparator);
  		for (TreeNode<T> child : children) {
  			child.sortChildrenByNode(comparator);
  		}
  	}
docs: Recursively sorts all children using the given comparator of TreeNode.