code: private synchronized void createListenersComparator() {
          if (listenersComparator == null) {
              listenersComparator = new Comparator<ArrangeableProxyListener>() {
                  @Override
                  public int compare(ArrangeableProxyListener o1, ArrangeableProxyListener o2) {
                      int order1 = o1.getArrangeableListenerOrder();
                      int order2 = o2.getArrangeableListenerOrder();
  
                      if (order1 < order2) {
                          return -1;
                          
                      } else if (order1 > order2) {
                          return 1;
                      }
  
                      return 0;
                  }
              };
          }
      }
docs: ZAP: Added the method.