public void preProcessor(List<Node> list) {
Collections.sort(list, new Comparator<Node>() {
@Override
public int compare(Node o1, Node o2) {
if(o1 instanceof Content && o2 instanceof Content) {
Content c1 = (Content) o1;
Content c2 = (Content) o2;
return c1.getText().compareTo(c2.getText());
} else if(o1 instanceof Element && o2 instanceof Content) {
return -1;
} else if(o1 instanceof Content && o2 instanceof Element) {
return 1;
} else {