public static void MergeSortWithCompareRules <T>(IList <T> list, IList <Comparison <T> > compareRules) { MergeSort(list, (a, b) => CompareUtil.CompareWithRules(a, b, compareRules) < 0); }
private int CompareWithRules(T data1, T data2) { return(CompareUtil.CompareWithRules(data1, data2, this.compareRules)); }
public static void BubbleSortWithCompareRules(IList list, IList <Comparison <object> > compareRules) { BubbleSort(list, (a, b) => CompareUtil.CompareWithRules(a, b, compareRules) < 0); }