Method

GObjectValueArraysort_with_data

Declaration

GValueArray*
g_value_array_sort_with_data (
  GValueArray* value_array,
  GCompareDataFunc compare_func,
  gpointer user_data
)

Description

Sort value_array using compare_func to compare the elements according to the semantics of GCompareDataFunc.

The current implementation uses the same sorting algorithm as standard C qsort() function.

Deprecated since:2.32

Use GArray and g_array_sort_with_data().

Parameters

compare_func GCompareDataFunc
 

Function to compare elements.

user_data gpointer
 

Extra data argument provided for compare_func.

Return value

Returns: GValueArray
 

The GValueArray passed in as value_array.

 The data is owned by the instance.