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.8.0-preview.1+4df4cd2858d46c717d136ff5c571742dc449f642.