public int CompareTo(object obj) { return(EditDistance.CompareTo(((Word)obj).EditDistance)); }
/// <summary> /// Sorts a collection of words by EditDistance /// </summary> /// <remarks> /// The compare sorts in desc order, largest EditDistance first /// </remarks> public int CompareTo(Word word) { int result = EditDistance.CompareTo(word.EditDistance); return(result); // * -1; // sorts desc order }
/// <summary> /// Sorts a collection of words by <see cref="EditDistance"/>. /// </summary> /// <remarks> /// The compare sorts in descending order, largest <see cref="EditDistance"/> first. /// </remarks> public int CompareTo(object obj) { int result = EditDistance.CompareTo(((Word)obj).EditDistance); return(result); // * -1; // sorts desc order }