Beispiel #1
0
        public static void ParallelMergeSort <T>(this T[] list, IComparer <T> comparer, bool ascending = true)
        {
            StoParallelMergeSort <T> sorter = new StoParallelMergeSort <T>(comparer);

            sorter.Sort(list, ascending);
        }
Beispiel #2
0
        public static void ParallelMergeSort <T>(this IList <T> list, Comparison <T> comparison, bool ascending = true)
        {
            StoParallelMergeSort <T> sorter = new StoParallelMergeSort <T>(comparison);

            sorter.Sort(list, ascending);
        }