int (final CachingChildrenTreeNode o1, final CachingChildrenTreeNode o2) { final Object value1 = o1.getValue(); final Object value2 = o2.getValue(); for (Sorter sorter : mySorters) { int result = sorter.getComparator().compare(value1, value2); if (result != 0) { return result; } } return 0; }