public virtual int CompareTo( object obj ) { Light other = obj as Light; if ( other.tempSquaredDist > this.tempSquaredDist ) { return 1; } else { return -1; } }