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