public String[] getRootChildrenOrder() {
return _ROOT_ORDERED_CHILDREN;
}
private int _compare(Object obj1, Object obj2) {
Element el1 = (Element)obj1;
Element el2 = (Element)obj2;
String el1Name = el1.getName();
String el2Name = el2.getName();
if (!el1Name.equals(el2Name)) {
return el1Name.compareTo(el2Name);
}
String el1Text = el1.getTextTrim();
String el2Text = el2.getTextTrim();
if (!el1Text.equals(el2Text)) {
return el1Text.compareTo(el2Text);
}