@Override
      public int compare(TreePath o1, TreePath o2) {
        return -direction * compare(tree.getRowForPath(o1), tree.getRowForPath(o2));
      }
@Override
      public int compare(TreePath o1, TreePath o2)