public List<String> getSortedActiveProcessorsZnodes() {
    List<String> znodeIds = zkClient.getChildren(keyBuilder.getProcessorsPath());
    if (znodeIds.size() > 0) {
      Collections.sort(znodeIds);
      LOG.info("Found these children - " + znodeIds);
    }
    return znodeIds;
  }
Method is used to get the <i>sorted</i> list of currently active/registered processors (znodes)

@return List of absolute ZK node paths
samza-core/src/main/java/org/apache/samza/zk/ZkUtils.java