qsortWithData

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

⚠️ Deprecated ⚠️

This is deprecated since version 2.82.

total_elems is too small to represent larger arrays; use func@GLib.sort_array instead

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