Method InsertionSort
InsertionSort(uint[], int)
Insertion sort
Declaration
public static void InsertionSort(uint[] arr, int sortSize)
Parameters
Type | Name | Description |
---|---|---|
uint[] | arr | Array to sort. |
int | sortSize | Size of the array to sort. If greater than array capacity, it will get clamped. |
InsertionSort(NativeArray<uint>, int)
Insertion sort
Declaration
public static void InsertionSort(NativeArray<uint> arr, int sortSize)
Parameters
Type | Name | Description |
---|---|---|
NativeArray<uint> | arr | Array to sort. |
int | sortSize | Size of the array to sort. If greater than array capacity, it will get clamped. |