public void sortChildrenRecursive() {
        for (Children children : childTrees) {
            for (SpanNode node : children.children()) {
                if (node instanceof SpanList) {
                    ((SpanList) node).sortChildrenRecursive();
                }
            }
            Collections.sort(children.children());
        }
    }
Recursively sorts all children in <strong>all</strong> subtrees by occurrence in the text covered.
document/src/main/java/com/yahoo/document/annotation/AlternateSpanList.java