code: public int compareTo(Object object)
     {
  
        if (object == null || !(object instanceof Named))
  
        {
  
           return -1;
  
        }
        else
  
        {
  
           Named vo = (Named) object;
  
           return getName().compareTo(vo.getName());
  
        }
  
     }
docs: --------------------------------------------