code: public int compareTo(Object aOther)
     {
        if(aOther == null )
           return 1;
        
        if(aOther == this)
           return 0;
        
        Nameable other = (Nameable)aOther;
        
        return name.compareTo(other.getName());
     }
docs: name.compareTo(other.getName())
  @see java.lang.Comparable#compareTo(java.lang.Object)