sort

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

Sorts an array in place using insertion sort.

Parameters

this
delegate int(in T left, in T right)
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 v0.6.0-preview.1+4dde68eca4014e9b19e7d7ad0fdae6b2036be640.