code: private byte[] getSortedPropTypes() {
      int count = 0;
      for (PropListItem x = propListHead; x != null; x = x.next) {
        count++;
      }
  
      byte[] keys = new byte[count];
      for (PropListItem x = propListHead; x != null; x = x.next) {
        count--;
        keys[count] = x.propType;
      }
  
      Arrays.sort(keys);
      return keys;
    }
docs: Gets all the property types, in sorted order.