public static int compareParentToChild(String path1,String path2){
  return path1.compareTo(path2);
}

public static int compareParentToChild ( String path1 , String path2 ) { return path1 . compareTo ( path2 ) ; }
not to be used for ui because files and subfolders at one level are compared lexicographically and may be mixed .
