+ };
+ Collections.sort(this.children, comparator );
+ for (UpdateNode n : this.children) {
+ n.sort(comparator);
+ }
+ }
+
+ public void sort(Comparator<UpdateNode> comparator ) {
+ if (children == null)
+ return;
+ Collections.sort(this.children, comparator );
+ for (UpdateNode n : this.children) {
+ n.sort(comparator);
+ }