code: static boolean hasAffectOnCVP(List<NodeInfo> order, Element compViewParent) {
          if (order.size() == 0) return false;
  
          int idx = 0;
          Element child = (Element) compViewParent.getFirstChild();
          NodeInfo ni = order.get(idx);
  
          if (child == null && ni != null) // most likely nodes to be pulled in
          return true;
  
          while (child != null) {
              if (child.getAttribute("hidden").equals("false")
                      && (!child.getAttribute("chanID").equals("")
                              || child.getAttribute("type").equals("regular"))) {
                  if (ni.getId().equals(child.getAttribute(Constants.ATT_ID))) {
                      if (idx >= order.size() - 1) // at end of order list
                      return false;
  
                      ni = order.get(++idx);
                  } else // if not equal then return true
                  return true;
              }
              child = (Element) child.getNextSibling();
          }
          if (idx < order.size()) return true; // represents nodes to be pulled in
          return false;
      }
docs: This method compares the children by id in the order list with the order in the
  compViewParent's ui visible children and returns true if the ordering differs indicating that
  the positioning if needed.