/* This is guaranteed to be a stable sort since version 2.32.  */
void g_ptr_array_sort(GPtrArray *array, GCompareFunc compare_func)
/* This is guaranteed to be a stable sort since version 2.32.  */
void g_ptr_array_sort(GPtrArray *array, GCompareFunc compare_func)
{
  g_return_if_fail (array != NULL);
  g_qsort_with_data (array->pdata,
                     array->len,
                     sizeof (gpointer),
                     (GCompareDataFunc)compare_func,
                     NULL);
}