code: public int compareTo(FilterFactoryReference o) {
          long cmp = serviceRanking - o.serviceRanking;
          if (cmp == 0) {
              cmp = priority - o.priority;
              if (cmp == 0) {
                  // We use the service id here, to archive consistent/stable ordering of filters
                  cmp = serviceID - o.serviceID;
              }
          }
          // "convert" the long to the integer contract of compareTo
          if (cmp > 0) {
              return 1;
          }
          if (cmp < 0) {
              return -1;
          }
          return 0;
      }
docs: <p>compareTo.</p>
  
  @param o a {@link org.ops4j.pax.wicket.internal.filter.FilterFactoryReference} object.
  @return a int.