sort

fun sort(compareFunc: CompareDataFunc)

Sorts @queue using @compare_func.

Since

2.4

Parameters

compareFunc

the #GCompareDataFunc used to sort @queue. This function is passed two elements of the queue and should return 0 if they are equal, a negative value if the first comes before the second, and a positive value if the second comes before the first.