/* If two array elements compare equal, their order in the sorted array is undefined. If you want equal elements to keep their order (i.e. you want a stable sort) you can write a comparison function that, if two elements would otherwise compare equal, compares them by their addresses.  */
void g_byte_array_sort(GByteArray *array, GCompareFunc compare_func)
/* If two array elements compare equal, their order in the sorted array is undefined. If you want equal elements to keep their order (i.e. you want a stable sort) you can write a comparison function that, if two elements would otherwise compare equal, compares them by their addresses.  */
void g_byte_array_sort(GByteArray *array, GCompareFunc compare_func)
{
  g_array_sort ((GArray *)array, compare_func);
}