+ /**
+ * {@inheritDoc}
+ */
+ public void sortChildren() {
+ Collections.sort(children);
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public void sortChildren(Comparator<Node<E>> comparator) {
+ Collections.sort(children, comparator);
+ }
+
+ //
+ // INTERFACE Comparable
+ //
+
+ /**
+ * {@inheritDoc}
+ */
+ public int compareTo(Node<E> otherNode) {
+ return element.compareTo(otherNode.getElement());
+ }
+