PtrArray.sort

Sorts the array, using compare_func which should be a qsort()-style comparison function (returns less than zero for first arg is less than second arg, zero for equal, greater than zero if irst arg is greater than second arg). If two array elements compare equal, their order in the sorted array is undefined. Note The comparison function for g_ptr_array_sort() doesn't take the pointers from the array as arguments, it takes pointers to the pointers in the array.

class PtrArray
void
sort

Parameters

compareFunc GCompareFunc

comparison function.

Meta