sort


Description:

public void sort (CompareDataFunc<G> cmp_func)

Sorts this using cmp_func.

cmp_func is passed two items of this 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.

Parameters:

this

a Sequence

cmp_func

the function used to sort the sequence

cmp_data

user data passed to cmp_func