ListG.sort

Sorts a #GList using the given comparison function. The algorithm used is a stable sort.

class ListG
sort
(
GCompareFunc compareFunc
)

Parameters

compareFunc GCompareFunc

the comparison function used to sort the #GList. This function is passed the data from 2 elements of the #GList 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.

Return Value

Type: ListG

the (possibly changed) start of the #GList

Meta