code: public int compare(Object objA, Object objB)
      {
          if (!(objA instanceof DefBase) || !(objB instanceof DefBase))
          {
              return 0;
          }
          else
          {
              return ((DefBase)objA).getName().compareTo(((DefBase)objB).getName());
          }
      }
docs: /* (non-Javadoc)
  @see java.util.Comparator#compare(java.lang.Object, java.lang.Object)