ListSG.sort

Sorts a #GSList using the given comparison function.

class ListSG
sort
(
GCompareFunc compareFunc
)

Parameters

compareFunc GCompareFunc

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

the start of the sorted #GSList

Meta