public int compareTo(Object p_other){
  if (p_other == null)   return 1;
  if (p_other instanceof BrdComponent) {
    return name.compareToIgnoreCase(((BrdComponent)p_other).name);
  }
  return 1;
}

public int compareTo ( Object p_other ) { if ( p_other == null ) return 1 ; if ( p_other instanceof BrdComponent ) { return name . compareToIgnoreCase ( ( ( BrdComponent ) p_other ) . name ) ; } return 1 ; }
compares 2 components by name . useful for example to display components in alphabetic order .
