Util.qsortWithData

This is just like the standard C qsort() function, but the comparison routine accepts a user data argument. This is guaranteed to be a stable sort since version 2.32.

class Util
static
void
qsortWithData

Parameters

pbase void[]

start of array to sort

size gsize

size of each element

compareFunc GCompareDataFunc

function to compare elements

userData void*

data to pass to compare_func

Meta