ValueArray.sort

Sort value_array using compare_func to compare the elements according to the semantics of #GCompareDataFunc.

The current implementation uses the same sorting algorithm as standard C qsort() function.

Parameters

compareFuncfunction to compare elements

Returns

the #GValueArray passed in as value_array

Deprecated

Use #GArray and [glib.array.Array.sortWithData].