CSharpGL.SortingHelper.Sort C# (CSharp) Method

Sort() public static method

Sort unmanaged array specified with array at specified area.
public static Sort ( IntPtr array, int start, int length, Comparer comparer ) : void
array System.IntPtr
start int index of first value to be sorted.
length int length of to bo sorted.
comparer Comparer /// If you want descending sort, make it returns -1 when [left] < [right]. /// Otherwise, make it returns -1 when [left] > [right].
return void
        public static void Sort(IntPtr array, int start, int length, Comparer<TemplateStructType> comparer)
        {
            QuickSort(array, start, start + length - 1, comparer);
        }

Same methods

SortingHelper::Sort ( IntPtr array, int start, int length, bool descending ) : void