g_byte_array_sort ()

Sorts a byte array, using compare_func which should be a qsort()-style
comparison function (returns less than zero for first arg is less than second
arg, zero for equal, greater than zero if first arg is greater than second
arg).

If two array elements compare equal, their order in the sorted array is
undefined.