code: public void setPropertySortingComparator(Comparator comp) {
          Comparator old = propertySortingComparator;
          propertySortingComparator = comp;
          if (propertySortingComparator != old) {
              buildModel();
          }
      }
docs: Set the comparator used for sorting properties. If this changes the
  comparator, the model will be rebuilt.
  
  @param comp