code: public int compareTo(WebPage o) {
          int result;
          // first compare by priority
          result = PRIORITY_COMPARATOR.compare(this.getPriority(), o.getPriority());
          // next compare by shortName
          if (result == 0) {
              result = SHORT_NAME_COMPARATOR.compare(this.getShortName(), o.getShortName());
          }
          return result;
      }
docs: Compare WebPage first by priority (in descending order - higher priority is first), then by shortName (in ascending order).
  Priority and / or shortName can be null. WebPages with null priority are at the end.
  
  @param o Other WebPage
  @return -1, 0, 1