code: public static List<String> getSortedChildren(ZooKeeper zookeeper, String path) throws InterruptedException, KeeperException
      {
          List<String> children = zookeeper.getChildren(path, false);
          List<String> sortedList = Lists.newArrayList(children);
          Collections.sort(sortedList);
          return sortedList;
      }
docs: Return the children of the given path sorted by sequence number
  
  @param zookeeper the client
  @param path      the path
  @return sorted list of children
  @throws InterruptedException                 thread interruption
  @throws org.apache.zookeeper.KeeperException zookeeper errors