ArrayG.sortWithData

Like g_array_sort(), but the comparison function receives an extra user data argument.

This is guaranteed to be a stable sort since version 2.32.

There used to be a comment here about making the sort stable by using the addresses of the elements in the comparison function. This did not actually work, so any such code should be removed.

class ArrayG
void
sortWithData

Parameters

compareFunc GCompareDataFunc

comparison function

userData void*

data to pass to @compare_func

Meta