sort

void sort<T>(T[] this, delegate int(in T left, in T right, sizeof(T)) compare, sizeof(T))

Sorts an array in place using insertion sort.

Parameters

this
delegate int(in T left, in T right, sizeof(T))
compare

Returns a negative value when the left item sorts before the right item, zero when equal, and a positive value otherwise.

nuint
sizeof(T)

Generated with campc 0.14.0-preview.1.