//method too compare band names in list and sort them accordingly public int CompareTo(object obj) { Band that = (Band)obj; return(this.BandName.CompareTo(that.BandName)); }
public int CompareTo(object obj) { Band otherBand = obj as Band; return(this.BandName.CompareTo(otherBand.BandName)); }