ValueArray.sort
gobject.value_array.ValueArray sort(glib.types.CompareDataFunc compareFunc)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
compareFunc | function to compare elements |
Returns
the #GValueArray passed in as value_array
Deprecated
Use #GArray and [glib.array.Array.sortWithData].