Function
GLibListsort
Description
Sorts a GList using the given comparison function. The algorithm
used is a stable sort.
This function is not directly available to language bindings.
Parameters
list-
Type: A list of
gpointerA
GList, this must point to the top of the list.The data is owned by the caller of the function. compare_func-
Type:
GCompareFuncThe comparison function used to sort the
GList. This function is passed the data from 2 elements of theGListand 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.