code: public int compareTo(Field field)
      {
          if (field instanceof BaseField) if (!this.isSameType((BaseField)field))
              return super.compareTo(field);
          short short1 = Short.MIN_VALUE, short2 = Short.MAX_VALUE;
          Short tempShort = (Short)this.getData();    // Get the physical data
          if (tempShort != null)
              short1 = tempShort.shortValue();
          tempShort = (Short)field.getData();   // Get the physical data
          if (tempShort != null)
              short2 = tempShort.shortValue();
          if (short1 == short2)
              return 0;
          if (short1 < short2)
              return -1;
          else
              return 1;
      }
docs: Compare field to this and return < > or = (-,+,0).
  @return The compare value.