code: @Override
      public int compareTo(IManagedContext<DomainClass> o) {
          int pri1 = o.getPriority();
          int pri2 = getPriority();
          return this == o ? 0 : pri1 < pri2 ? -1 : 1;
      }
docs: Compares by priority, with higher priorities collating first.