Example #1
0
 public static void Sort <T>(IList <T> list, IComparer <T> comparer)
 {
     MergeSort.Sort <T>(list, 0, list.Count - 1, comparer);
 }
Example #2
0
 public static void Sort <T>(IList <T> list) where T : IComparable <T>
 {
     MergeSort.Sort <T>(list, 0, list.Count - 1, Comparer <T> .Default);
 }