qsortWithData

fun qsortWithData(pbase: <Error class: unknown class>, totalElems: <Error class: unknown class>, size: <Error class: unknown class>, compareFunc: CompareDataFunc)

This is just like the standard C man:qsort(3) function, but the comparison routine accepts a user data argument (like man:qsort_r(3)).

Unlike qsort(), this is guaranteed to be a stable sort (since GLib 2.32).

Parameters

pbase

start of array to sort

totalElems

elements in the array

size

size of each element

compareFunc

function to compare elements