Function
GLibListsort
Parameters
list
-
Type: A list of
gpointer
A
GList
, this must point to the top of the list.The data is owned by the caller of the function. compare_func
-
Type:
GCompareFunc
The comparison function used to sort the
GList
. This function is passed the data from 2 elements of theGList
and should return 0 if they are equal, a negative value if the first element comes before the second, or a positive value if the first element comes after the second.